FastLED 3.9.15
Loading...
Searching...
No Matches
fl::Optional< T > Class Template Reference

Detailed Description

template<typename T>
class fl::Optional< T >

Definition at line 20 of file optional.h.

#include <optional.h>

+ Inheritance diagram for fl::Optional< T >:

Public Member Functions

 Optional () FL_NOEXCEPT
 
 Optional (const Optional &other) FL_NOEXCEPT
 
 Optional (const T &value) FL_NOEXCEPT
 
 Optional (nullopt_t) FL_NOEXCEPT
 
 Optional (Optional &&other) FL_NOEXCEPT
 
 Optional (T &&value) FL_NOEXCEPT
 
 ~Optional () FL_NOEXCEPT
 
template<typename... Args>
void emplace (Args &&... args) FL_NOEXCEPT
 Construct value in-place with variadic arguments.
 
void emplace (T &&value) FL_NOEXCEPT
 Emplace with rvalue reference.
 
bool empty () const FL_NOEXCEPT
 
bool has_value () const FL_NOEXCEPT
 
 operator bool () const FL_NOEXCEPT
 
bool operator! () const FL_NOEXCEPT
 
bool operator!= (const Optional &other) const FL_NOEXCEPT
 
bool operator!= (nullopt_t) const FL_NOEXCEPT
 
bool operator() () const FL_NOEXCEPT
 
const T & operator* () const FL_NOEXCEPT
 
T & operator* () FL_NOEXCEPT
 
const T * operator-> () const FL_NOEXCEPT
 
T * operator-> () FL_NOEXCEPT
 
Optionaloperator= (const Optional &other) FL_NOEXCEPT
 
Optionaloperator= (const T &value) FL_NOEXCEPT
 
Optionaloperator= (nullopt_t) FL_NOEXCEPT
 
Optionaloperator= (Optional &&other) FL_NOEXCEPT
 
Optionaloperator= (T &&value) FL_NOEXCEPT
 
bool operator== (const Optional &other) const FL_NOEXCEPT
 
bool operator== (const T &value) const FL_NOEXCEPT
 
template<typename TT, typename UU>
bool operator== (const variant< TT, UU > &other) const FL_NOEXCEPT
 
bool operator== (nullopt_t) const FL_NOEXCEPT
 
const T * ptr () const FL_NOEXCEPT
 
T * ptr () FL_NOEXCEPT
 
void reset () FL_NOEXCEPT
 
void swap (Optional &other) FL_NOEXCEPT
 
const T & value () const FL_NOEXCEPT
 
T & value () FL_NOEXCEPT
 
value_or (const T &default_value) const FL_NOEXCEPT
 
value_or (T &&default_value) const FL_NOEXCEPT
 

Private Attributes

fl::variant< T, EmptymValue
 

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