GRASP rci-qed
Public Member Functions | Private Attributes | List of all members
cpptoml::option< T > Class Template Reference

#include <cpptoml.h>

Public Member Functions

 option ()
 
 option (T value)
 
 operator bool () const
 
const T & operator* () const
 
const T * operator-> () const
 
template<class U >
value_or (U &&alternative) const
 

Private Attributes

bool empty_
 
value_
 

Constructor & Destructor Documentation

◆ option() [1/2]

template<class T >
cpptoml::option< T >::option ( )
inline

◆ option() [2/2]

template<class T >
cpptoml::option< T >::option ( value)
inline

Member Function Documentation

◆ operator bool()

template<class T >
cpptoml::option< T >::operator bool ( ) const
inlineexplicit

◆ operator*()

template<class T >
const T& cpptoml::option< T >::operator* ( ) const
inline

◆ operator->()

template<class T >
const T* cpptoml::option< T >::operator-> ( ) const
inline

◆ value_or()

template<class T >
template<class U >
T cpptoml::option< T >::value_or ( U &&  alternative) const
inline

Member Data Documentation

◆ empty_

template<class T >
bool cpptoml::option< T >::empty_
private

◆ value_

template<class T >
T cpptoml::option< T >::value_
private

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