Public Types | Public Member Functions | Private Attributes

UT_Option< T > Class Template Reference

#include <ut_option.h>

List of all members.

Public Types

typedef T data_type

Public Member Functions

 UT_Option ()
 UT_Option (T &&data)
 UT_Option (const T &data)
template<class... Args>
 UT_Option (Args &&...args)
T && unwrap ()
unwrap_or (const T &value)
bool empty () const
 operator bool () const

Private Attributes

bool m_none
m_data

template<class T>
class UT_Option< T >


Member Typedef Documentation

template<class T>
typedef T UT_Option< T >::data_type

Constructor & Destructor Documentation

template<class T>
UT_Option< T >::UT_Option (  )  [inline]
template<class T>
UT_Option< T >::UT_Option ( T &&  data  )  [inline]
template<class T>
UT_Option< T >::UT_Option ( const T &  data  )  [inline, explicit]
template<class T>
template<class... Args>
UT_Option< T >::UT_Option ( Args &&...  args  )  [inline]

Member Function Documentation

template<class T>
bool UT_Option< T >::empty (  )  const [inline]

Referenced by TFTEST_MAIN().

template<class T>
UT_Option< T >::operator bool (  )  const [inline, explicit]
template<class T>
T&& UT_Option< T >::unwrap (  )  [inline]

Referenced by TFTEST_MAIN().

template<class T>
T UT_Option< T >::unwrap_or ( const T &  value  )  [inline]

Member Data Documentation

template<class T>
T UT_Option< T >::m_data [private]
template<class T>
bool UT_Option< T >::m_none [private]

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