C++ features by examples
template_struct< T > Struct Template Reference

template with type float by default More...

Public Member Functions

 template_struct ()
 
 template_struct (T val)
 

Public Attributes

val
 

Detailed Description

template<typename T = float>
struct template_struct< T >

template with type float by default

Definition at line 49 of file 17.cpp.

Constructor & Destructor Documentation

◆ template_struct() [1/2]

template<typename T = float>
template_struct< T >::template_struct ( )
inline

Definition at line 51 of file 17.cpp.

51: val() {}

◆ template_struct() [2/2]

template<typename T = float>
template_struct< T >::template_struct ( val)
inline

Definition at line 52 of file 17.cpp.

52: val(val) {}

Member Data Documentation

◆ val

template<typename T = float>
T template_struct< T >::val

Definition at line 50 of file 17.cpp.


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