1 #ifndef _RHEOLEF_PRETTY_NAME_H
2 #define _RHEOLEF_PRETTY_NAME_H
24 #include "rheolef/compiler.h"
54 #define typename_macro(T) rheolef::typeid_name(typeid(T).name(), false)
55 #define pretty_typename_macro(T) rheolef::typeid_name(typeid(T).name(), true)
58 template <
class T> std::string
typename_of (
T x) {
return typename_macro(
T); }
This file is part of Rheolef.
std::string typeid_name(const char *name, bool do_indent)
std::string pretty_typename_of(T x)
std::string typename_of(T x)
get string type from a variable or expression