Celeritas  0.5.0-86+4a8eea4
Public Member Functions | List of all members
celeritas::TypeDemangler< T > Class Template Reference

Utility function for demangling C++ types (specifically with GCC). More...

#include <TypeDemangler.hh>

Public Member Functions

std::string operator() () const
 Get the pretty typename of the instantiated type (static).
 
std::string operator() (T const &) const
 Get the dynamic pretty typename of a variable (dynamic).
 

Detailed Description

template<class T>
class celeritas::TypeDemangler< T >

Utility function for demangling C++ types (specifically with GCC).

See: http://stackoverflow.com/questions/281818/unmangling-the-result-of-stdtype-infoname Example:

std::string int_type = demangled_typeid_name(typeid(int).name());
TypeDemangler<Base> demangle;
std::string static_type = demangle();
std::string dynamic_type = demangle(Derived());

The documentation for this class was generated from the following file: