jaulib v1.3.0
Jau Support Library (C++, Java, ..)
Static Public Member Functions | List of all members
jau::type_name_cue< T > Struct Template Reference

Helper, allowing simple access and provision of a typename string representation at compile time, see jau::type_cue for usage. More...

#include <type_traits_queries.hpp>

Inheritance diagram for jau::type_name_cue< T >:
Collaboration diagram for jau::type_name_cue< T >:

Static Public Member Functions

static const char * name ()
 Return the string representation of this type. More...
 

Detailed Description

template<typename T>
struct jau::type_name_cue< T >

Helper, allowing simple access and provision of a typename string representation at compile time, see jau::type_cue for usage.

You may use the macro JAU_TYPENAME_CUE(TYPENAME) to set a single type or maybe JAU_TYPENAME_CUE_ALL(TYPENAME) to set the single type and all pointer and reference variations (mutable and const).

Without user override, implementation will use typeid(T).name().

Template Parameters
Tthe typename to name
See also
jau::type_cue

Definition at line 103 of file type_traits_queries.hpp.

Member Function Documentation

◆ name()

template<typename T >
static const char * jau::type_name_cue< T >::name ( )
inlinestatic

Return the string representation of this type.

This might be a compile time user override, see jau::type_name_cue.

If no user override has been provides, the default implementation either returns typeid(T).name() if RTTI is enabled or "unnamed_type" if RTTI is disabled.

Definition at line 116 of file type_traits_queries.hpp.

Here is the caller graph for this function:

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