libcaf  0.13.2
Public Types | Public Member Functions | List of all members
caf::optional< T & > Class Template Reference

Template specialization to allow optional to hold a reference rather than an actual value. More...

#include <optional.hpp>

Public Types

using type = T
 

Public Member Functions

 optional (const none_t &=none)
 
 optional (T &value)
 
 optional (const optional &other)=default
 
optionaloperator= (const optional &other)=default
 
bool valid () const
 
bool empty () const
 
 operator bool () const
 
bool operator! () const
 
T & operator* ()
 
const T & operator* () const
 
T * operator-> ()
 
const T * operator-> () const
 
T & get ()
 
const T & get () const
 
const T & get_or_else (const T &default_value) const
 

Detailed Description

template<class T>
class caf::optional< T & >

Template specialization to allow optional to hold a reference rather than an actual value.


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