Celeritas 0.6.0-dev.115+3b60a5fd
Loading...
Searching...
No Matches
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());
std::string static_type = demangle();
std::string dynamic_type = demangle(Derived());
Utility function for demangling C++ types (specifically with GCC).
Definition TypeDemangler.hh:30

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