Get type information of a given class or type.
This specialization allows to specify a type without an object (for example by calling: type_info_of<int const>()
).
As it doesn't ignore top-level qualifiers it is best suited to print for example template parameters. For example,
template<typename T>
void Foo::func(T const&)
{
Dout(
dc::notice,
"Calling Foo::func(" << type_info_of<T const&>().demangled_name() <<
')');
}
#define Dout(cntrl, data)
Macro for writing debug output.
Definition: debug.h:154
channel_ct notice
Definition: debug.cc:460