A compile-time precursor to name_t.
This type is especially useful for setting up keys in advance, as work is done at compile-time to make conversion from a static_name_t to a name_t to be faster than creating a name_t at runtime. static_name_t does no work at runtime, instead leveraging c++11's constexpr feature to precompute token string hash values for immediate insertion into the underlying name table.
- Note
- You cannot create a static_name_t any way other than through the user defined literal. They can only be created at compile-time.
- Complexity Guarantee(s)
- The first time a static_name_t with a particular string is converted to a name_t is a O(log N) operation. Thereafter conversion of that same literal from a static_name_t to a name_t is on average O(1).
- Promotes To
- name_t
- Promotes To
- adobe::name_t
Definition at line 135 of file name.hpp.