|
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| Member functions | ||||
| Observers | ||||
| Iterators | ||||
(C++26) | ||||
(C++26) | ||||
| Monadic operations | ||||
(C++23) | ||||
(C++23) | ||||
(C++23) | ||||
| Modifiers | ||||
| Non-member functions | ||||
| Deduction guides | ||||
| Helper classes | ||||
| Helper objects | ||||
nullopt | ||||
Defined in header <optional> | ||
inlineconstexpr nullopt_t nullopt{/*unspecified*/}; | (since C++17) | |
std::nullopt is a constant of typestd::nullopt_t. Used to indicate that anstd::optional does not contain a value.
(C++17) | indicator of anstd::optional that does not contain a value(class)[edit] |