![]() |
MySQL 9.3.0
Source Code Documentation
|
Lightweight implementation of optional. More...
#include <optional.h>
Public Member Functions | |
Optional ()=default | |
Optional (const ValueType value) | |
Optional (const Optional &other) | |
ValueType & | operator* () |
ValueType | operator* () const |
ValueType * | operator-> () |
const ValueType * | operator-> () const |
Optional & | operator= (const Optional &value) |
Optional & | operator= (const ValueType value) |
void | reset () |
bool | has_value () const |
ValueType | value () const |
operator bool () const | |
Private Attributes | |
bool | is_set_ {false} |
ValueType | v_ {} |
Lightweight implementation of optional.
This class was especially created for POD types.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
private |
|
private |