jaulib v1.3.8
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
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 () noexcept
 Return the string representation of this type.
 

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 106 of file type_traits_queries.hpp.

Member Function Documentation

◆ name()

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

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 119 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: