|
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.
|
Internal macro-based utilities. More...
Functions | |
| template<typename T> | |
| constexpr std::string_view | type_name () |
Extract the human-readable type name of T at compile time. | |
Internal macro-based utilities.
jh::macro contains low-level helpers implemented using compiler- or platform-specific macros.
This namespace is intended for internal infrastructure and diagnostics within the JH Toolkit. Its facilities are not part of the stable public API and should not be relied upon directly by user code.
|
constexpr |
Extract the human-readable type name of T at compile time.
Uses compiler-specific macros (Clang/GCC PRETTY_FUNCTION) to obtain the unmangled type name of a template parameter.
-fno-rtti). | T | The type to inspect. |
std::string_view with the extracted type name, or "unknown" if extraction fails.