![]() |
OpenPFC
0.1.4
Phase Field Crystal simulation framework
|
Get human-readable type names at runtime. More...
#include <complex>#include <string>#include <type_traits>#include <typeinfo>

Go to the source code of this file.
Classes | |
| struct | pfc::TypeName< T > |
| struct | pfc::TypeName< int > |
| struct | pfc::TypeName< float > |
| struct | pfc::TypeName< double > |
| struct | pfc::TypeName< std::complex< T > > |
Get human-readable type names at runtime.
This header provides the TypeName<T> template struct for obtaining human-readable string representations of C++ types.
The generic template uses typeid().name() (compiler-dependent), while specializations provide clean names for common types:
This is useful for: