$darkmode
lrdb::optional< T & > Class Template Reference

specialize optional for reference. sizeof(optional<T&>) == sizeof(T*) More...

#include <optional.hpp>

Public Member Functions

 optional (nullopt_t)
 
 optional (const optional &other)
 
 optional (T &value)
 
optionaloperator= (nullopt_t)
 
optionaloperator= (const optional &other)
 
optionaloperator= (T &value)
 
 operator bool_type () const
 
T & value ()
 
const T & value () const
 
T & value_or (T &default_value) const
 
const T * operator-> () const
 
T * operator-> ()
 
const T & operator* () const
 
T & operator* ()
 

Detailed Description

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

specialize optional for reference. sizeof(optional<T&>) == sizeof(T*)


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