xieite::obj_name<>

Defined in header <xieite/meta/obj_name.hpp>

Stores the name of an object or 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<typename T>
constexpr std::string_view obj_name = /* ??? */;


Example

int main() {
	xieite::dump(xieite::obj_name<418>);
}
Possible output:
418
[View in Compiler Explorer]