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

self implement for std::optional(C++17 feature). More...

#include <optional.hpp>

Inheritance diagram for lrdb::optional< T >:

Public Member Functions

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

Detailed Description

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

self implement for std::optional(C++17 feature).


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