xieite ::name ()
Defined in fragment xieite :name
(header-only:
<xieite/meta/name.hpp>
)
Returns the name of a type or value as a string by parsing
__PRETTY_FUNCTION__
or __FUNCSIG__
. Does not perform any additional string processing, so the output is entirely compiler-dependent.Declaration
#0Returns the name of a type.template <typename > [[nodiscard ]]consteval std ::string_view name ()noexcept ;
#1
Returns the name of a value.template <auto > [[nodiscard ]]consteval std ::string_view name ()noexcept ;
Example
Possible output:import std ;import xieite ;int main () {xieite ::dump (xieite ::name <std ::vector <int >>()); }
std::vector<int>