Represents no value.
An object of type Nothing can be assigned to any Optional object to make it contain nothing.
Holds a value or nothing.
Anything can be assigned to Nothing objects and nothing is stored:
Definition at line 36 of file Optional.h.
#include <Sawyer/Optional.h>
◆ Nothing() [1/2]
Sawyer::Nothing::Nothing |
( |
| ) |
|
|
inline |
◆ Nothing() [2/2]
template<class T >
Sawyer::Nothing::Nothing |
( |
T |
| ) |
|
|
inlineexplicit |
◆ operator=()
template<class T >
Nothing & Sawyer::Nothing::operator= |
( |
T |
| ) |
|
|
inline |
◆ operator==()
bool Sawyer::Nothing::operator== |
( |
const Nothing & |
| ) |
const |
|
inline |
◆ operator!=()
bool Sawyer::Nothing::operator!= |
( |
const Nothing & |
| ) |
const |
|
inline |
◆ operator>()
bool Sawyer::Nothing::operator> |
( |
const Nothing & |
| ) |
const |
|
inline |
◆ operator>=()
bool Sawyer::Nothing::operator>= |
( |
const Nothing & |
| ) |
const |
|
inline |
◆ operator<()
bool Sawyer::Nothing::operator< |
( |
const Nothing & |
| ) |
const |
|
inline |
◆ operator<=()
bool Sawyer::Nothing::operator<= |
( |
const Nothing & |
| ) |
const |
|
inline |
The documentation for this class was generated from the following file: