Electroneum
Loading...
Searching...
No Matches
Electroneum::optional< T > Class Template Reference

#include <wallet2_api.h>

Public Member Functions

 optional ()
 optional (const T &t)
const Toperator* () const
Toperator* ()
 operator bool () const

Detailed Description

template<typename T>
class Electroneum::optional< T >

Definition at line 57 of file wallet2_api.h.

Constructor & Destructor Documentation

◆ optional() [1/2]

template<typename T>
Electroneum::optional< T >::optional ( )
inline

Definition at line 59 of file wallet2_api.h.

59: set(false) {}

◆ optional() [2/2]

template<typename T>
Electroneum::optional< T >::optional ( const T & t)
inline

Definition at line 60 of file wallet2_api.h.

60: t(t), set(true) {}

Member Function Documentation

◆ operator bool()

template<typename T>
Electroneum::optional< T >::operator bool ( ) const
inline

Definition at line 63 of file wallet2_api.h.

63{ return set; }

◆ operator*() [1/2]

template<typename T>
T & Electroneum::optional< T >::operator* ( )
inline

Definition at line 62 of file wallet2_api.h.

62{ return t; }

◆ operator*() [2/2]

template<typename T>
const T & Electroneum::optional< T >::operator* ( ) const
inline

Definition at line 61 of file wallet2_api.h.

61{ return t; }

The documentation for this class was generated from the following file:
  • /home/abuild/rpmbuild/BUILD/electroneum-5.1.3.1-build/electroneum-5.1.3.1/src/wallet/api/wallet2_api.h