Lolly 1.4.27
Loading...
Searching...
No Matches
Static Public Member Functions | Static Public Attributes | List of all members
type_helper< T > Struct Template Reference

Helper struct for type identification and initialization. More...

#include <basic.hpp>

Collaboration diagram for type_helper< T >:
Collaboration graph
[legend]

Static Public Member Functions

staticinit_val ()
 Returns the initialized value of the type.
 

Static Public Attributes

static int id = new_type_identifier ()
 The type identifier.
 
staticinit = T ()
 The initialized value of the type.
 

Detailed Description

template<typename T>
struct type_helper< T >

Helper struct for type identification and initialization.

Template Parameters
TThe type to help identify and initialize.

Definition at line 303 of file basic.hpp.

Member Function Documentation

◆ init_val()

template<typename T >
static T type_helper< T >::init_val ( )
inlinestatic

Returns the initialized value of the type.

Definition at line 306 of file basic.hpp.

Member Data Documentation

◆ id

template<typename T >
int type_helper< T >::id = new_type_identifier ()
static

The type identifier.

Initializes the type identifier and initialized value for a giventemplate type T.

Template Parameters
TThe type to initialize. The type identifier for type T.

Definition at line 304 of file basic.hpp.

◆ init

template<typename T >
T type_helper< T >::init = T ()
static

The initialized value of the type.

The initialized value for type T.

Definition at line 305 of file basic.hpp.


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