17namespace templa::type_info
31 static constexpr auto value =
"";
38 static constexpr auto value =
"int";
45 static constexpr auto value =
"char";
52 static constexpr auto value =
"float";
59 static constexpr auto value =
"long";
66 static constexpr auto value =
"void";
73 static constexpr auto value =
"uint8_t";
80 static constexpr auto value =
"uint16_t";
87 static constexpr auto value =
"uint64_t";
94 static constexpr auto value =
"uint32_t";
104 template <
typename T>
118 if constexpr (std::is_const_v<T>)
122 if constexpr (std::is_pointer_v<T>)
126 if constexpr (std::is_reference_v<T>)
148 template <
typename C>
153 constexpr static int _var{0};
157 constexpr static auto id{&_var};
Compile-time type identification utilities.
Generates a unique type identifier for a type C at compile time.
Definition type_info.hpp:150
Primary template to get the string name of a type.
Definition type_info.hpp:29
static constexpr auto value
String literal representing the name of the type T.
Definition type_info.hpp:31
Provides a human-readable string description of the type T, including qualifiers and pointers.
Definition type_info.hpp:106
static constexpr std::string stringify()
Returns a string describing the type T.
Definition type_info.hpp:116