Classes | Typedefs | Functions
pretty_type Namespace Reference

Contains all functions that are part of PrettyType, used for printing types in a pretty manner. More...

Classes

struct  stl_templates
 A list of type traits to check if something is an STL member. More...
 

Typedefs

using basics_map = detail::TemplateMap_t< char, signed char, unsigned char, wchar_t, char16_t, char32_t, int, unsigned int, long, unsigned long, long long, unsigned long long, short, unsigned short, float, double, long double, bool, std::string >
 typelist of basic types that can be pretty printed More...
 

Functions

std::string extract_short_name (std::string name)
 Extract the "short name" from a name, that is, the name without template parameters or scopes.
 
template<typename T , typename Map = basics_map, typename KnownTemplates = stl_templates>
std::string get_name ()
 Returns a string with the prettiest typename known for the type T. More...
 
template<typename T >
std::string get_runtime_type_name (const T &x)
 Returns a string with the prettiest typename known for the runtime type of x. More...
 
template<typename T >
std::string short_name ()
 Return the "short name" of a class, that is, the name without template parameters or scopes.
 

Detailed Description

Contains all functions that are part of PrettyType, used for printing types in a pretty manner.