#include <string_view>
Go to the source code of this file.
|
template<typename T > |
constexpr auto | type_name () |
|
template<typename T >
constexpr auto type_name |
( |
| ) |
|
Definition at line 12 of file common.h.
14 std::string_view
name, prefix, suffix;
16 name = __PRETTY_FUNCTION__;
17 prefix =
"auto type_name() [T = ";
19 #elif defined(__GNUC__)
20 name = __PRETTY_FUNCTION__;
21 prefix =
"constexpr auto type_name() [with T = ";
23 #elif defined(_MSC_VER)
25 prefix =
"auto __cdecl type_name<";
28 name.remove_prefix(prefix.size());
29 name.remove_suffix(suffix.size());