C++ Actor Framework 0.18
Loading...
Searching...
No Matches
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 with minimal overhead. More...

#include <optional.hpp>

Public Types

using type = T
 

Public Member Functions

 optional (const none_t &=none)
 
 optional (T &x)
 
 optional (T *x)
 
 optional (const optional &other)=default
 
optionaloperator= (const optional &other)=default
 
 operator bool () const
 
bool operator! () const
 
T & operator* ()
 
const T & operator* () const
 
T * operator-> ()
 
const T * operator-> () const
 
T & value ()
 
const T & value () const
 
const T & value_or (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 with minimal overhead.


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