xieite ::value_name <>
Defined in header <xieite/meta/value_name.hpp>
Stores the name of a value as a string by extracting it from
__PRETTY_FUNCTION__
or __FUNCSIG__
.Does not perform any additional string processing, so the output is entirely compiler-dependent.
Declaration
template <auto x >constexpr std ::string_view value_name =/* ??? */ ;
Example
Possible output:enum E :int {A ,B ,C };int main () {xieite ::dump (xieite ::value_name <static_cast <E >(1)>); }
[View in Compiler Explorer]B