MRPT
2.0.4
|
Metaprogramming header-only library to obtain constexpr
textual string representations of enum types and type names, including smart pointers and complex STL compound types.
Back to list of all libraries | See all modules
[New in MRPT 2.0.0]
This library is part of MRPT but has no dependencies, so it can be installed in Debian-based systems with:
sudo apt install libmrpt-typemeta-dev
See: Using MRPT from your CMake project
Use mrpt::typemeta::TTypeName to extract a constexpr
string with a compiler-independent representation of arbitrarily-complex types and STL containers. Note that creating objects from a run-time string representation of its type is handled in a different library ([mrpt-serialization]).
See: typemeta_TTypeName/test.cpp
Output:
See: typemeta_StaticString/test.cpp
Output:
See: typemeta_StaticString/test.cpp
Output:
See: typemeta_TEnumType/test.cpp
Output:
Classes | |
struct | mrpt::typemeta::TEnumTypeFiller< ENUMTYPE > |
Only specializations of this class are defined for each enum type of interest. More... | |
struct | mrpt::typemeta::TEnumType< ENUMTYPE > |
A helper class that can convert an enum value into its textual representation, and viceversa. More... | |
struct | mrpt::typemeta::TTypeName< T > |
A template to obtain the type of its argument as a string at compile time. More... | |
Page generated by Doxygen 1.8.14 for MRPT 2.0.4 Git: 33de1d0ad Sat Jun 20 11:02:42 2020 +0200 at sáb jun 20 17:35:17 CEST 2020 |