Public Member Functions | List of all members
Sawyer::Nothing Class Reference


Represents no value.

An object of type Nothing can be assigned to any Optional object to make it contain nothing.

Optional<int> opt1;
Optional<int> opt2(Nothing());
Optional<int> opt3 = 123;
opt3 = Nothing();

Definition at line 32 of file Optional.h.

#include <util/Sawyer/Optional.h>

Public Member Functions

bool operator== (const Nothing &) const
bool operator!= (const Nothing &) const
bool operator> (const Nothing &) const
bool operator>= (const Nothing &) const
bool operator< (const Nothing &) const
bool operator<= (const Nothing &) const

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