jaulib v1.3.8
Jau Support Library (C++, Java, ..)
Loading...
Searching...
No Matches
jau::type_cue< T > Struct Template Reference

Helper, allowing simple access to compile time typename and Type traits information, see jau::type_name_cue to setup typename's string representation. More...

#include <type_traits_queries.hpp>

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

Static Public Member Functions

static void fprint (std::FILE *stream, const std::string &typedefname, const TypeTraitGroup verbosity=TypeTraitGroup::NONE)
 Print information of this type to stdout, potentially with all Type traits known.
 
static void print (const std::string &typedefname, const TypeTraitGroup verbosity=TypeTraitGroup::NONE)
 Print information of this type to stdout, potentially with all Type traits known.
 
static std::string to_string (const bool withSize=true) noexcept
 
- Static Public Member Functions inherited from jau::type_name_cue< T >
static const char * name () noexcept
 Return the string representation of this type.
 

Detailed Description

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

Helper, allowing simple access to compile time typename and Type traits information, see jau::type_name_cue to setup typename's string representation.

Template Parameters
Tthe typename to introspect
See also
jau::type_name_cue

Definition at line 135 of file type_traits_queries.hpp.

Member Function Documentation

◆ to_string()

template<typename T>
static std::string jau::type_cue< T >::to_string ( const bool withSize = true)
inlinestaticnoexcept

Definition at line 138 of file type_traits_queries.hpp.

◆ fprint()

template<typename T>
static void jau::type_cue< T >::fprint ( std::FILE * stream,
const std::string & typedefname,
const TypeTraitGroup verbosity = TypeTraitGroup::NONE )
inlinestatic

Print information of this type to stdout, potentially with all Type traits known.

Parameters
streamoutput stream
typedefnamethe code typedefname (or typename) as a string, should match T
verboseif true, prints all Type traits known for this type. Be aware of the long output. Defaults to false.

Definition at line 152 of file type_traits_queries.hpp.

Here is the caller graph for this function:

◆ print()

template<typename T>
static void jau::type_cue< T >::print ( const std::string & typedefname,
const TypeTraitGroup verbosity = TypeTraitGroup::NONE )
inlinestatic

Print information of this type to stdout, potentially with all Type traits known.

Parameters
typedefnamethe code typedefname (or typename) as a string, should match T
verboseif true, prints all Type traits known for this type. Be aware of the long output. Defaults to false.
Examples
test_cow_iterator_01.cpp, and test_functional.hpp.

Definition at line 244 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: