A name is an immutable string literal used for indexing associative containers (e.g., dictionary_t.) It has several performance guarantees that make it a preferred alternative to other string-based key types.
A name_t is a string class for immutable strings. The storage for name_t is globally pooled and strings are reused. Although an adobe::name_t can be somewhat expensive to construct, copying assignment, and equality comparisons are very fast.
- Model Of:
-
- Rationale:
- Note
- The name_t class is thread safe when compiled with BOOST_HAS_THREADS defined.
- Todo
- The complexity of construction of a name_t is currently O(log(n)). An efficient hash implementation may improve efficiency.
- Todo
- Serialization support for name_t is not complete, but can be enabled by defining ADOBE_SERIALIZATION.
Definition at line 220 of file name.hpp.