TGUI  0.8.6
tgui::Variant< FirstType, OtherTypes > Class Template Reference

Public Member Functions

 Variant ()
 Default constructor.
 
template<typename T >
 Variant (const T &value)
 Construct the variant with an initial value. More...
 
template<typename T >
T & get ()
 Retrieve the value in the variant. More...
 
template<typename T >
const T & get () const
 Retrieve the value in the variant. More...
 

Constructor & Destructor Documentation

◆ Variant()

template<typename FirstType, typename... OtherTypes>
template<typename T >
tgui::Variant< FirstType, OtherTypes >::Variant ( const T &  value)
inline

Construct the variant with an initial value.

Parameters
valueValue to store in the variant

Member Function Documentation

◆ get() [1/2]

template<typename FirstType, typename... OtherTypes>
template<typename T >
T& tgui::Variant< FirstType, OtherTypes >::get ( )
inline

Retrieve the value in the variant.

Returns
Stored value

◆ get() [2/2]

template<typename FirstType, typename... OtherTypes>
template<typename T >
const T& tgui::Variant< FirstType, OtherTypes >::get ( ) const
inline

Retrieve the value in the variant.

Returns
Stored value

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