optional [constructor] | Constructors |
~optional [destructor] | Destructors |
operator= | Assignment operators |
and_then | Returns an optional containing the result of applying f to the stored value. |
begin | begin overloads |
emplace | emplace overloads |
end | end overloads |
has_value | Returns whether or not the optional has a value. |
operator* | Returns a reference to the stored value. |
operator-> | Returns a pointer to the stored value. |
or_else | Returns an optional containing the stored value if it has one, or the result of applying f to the optional if it does not. |
reset | Resets the optional to an empty state, destroying the stored value if there is one. |
swap | Swaps this optional with the other. |
transform | Returns an optional containing the result of applying f to the stored value, or a default value if there is no stored value. |
value | Returns a reference to the stored value. |
value_or | Returns a reference to the stored value. |
operator bool | Converts the optional to a boolean indicating whether it has a value. |