|
JH-Toolkit v1.4.1
An engineering-oriented C++20 toolkit with duck-typed concepts, static design, async coroutines, and semantic containers — header-only, RTTI-free, and concurrency-friendly.
|
Compile-time type name extraction using compiler-specific macros. More...
Go to the source code of this file.
Namespaces | |
| namespace | jh::macro |
| Internal macro-based utilities. | |
Functions | |
| template<typename T> | |
| constexpr std::string_view | jh::macro::type_name () |
Extract the human-readable type name of T at compile time. | |
Compile-time type name extraction using compiler-specific macros.
This header provides jh::macro::type_name<T>(), which extracts the unmangled type name of T from PRETTY_FUNCTION (Clang/GCC) without requiring RTTI.
-fno-rtti. "unknown" if compiler is unsupported. 1.3.x
2025