User defined literal to convert a compile-time string into a static_name_t. It has been defined in the adobe::literals namespace to avoid namespace pollution.
- Example
using namespace adobe::literals;
adobe::static_name_t foo("foo"_name); // OK, creation via user defined literal
adobe::name_t bar(foo); // OK, implicit promotion to a name_t
adobe::name_t baz("baz"_name); // OK, creation and then promotion
- The adobe namespace itself uses the literals namespace, so you do not need to specify using namespace adobe::literals if you are already using namespace adobe:
using namespace adobe;
static_name_t foo("foo"_name); // OK
name_t bar("bar"_name); // OK
Definition at line 204 of file name.hpp.