std::nullopt_t - cppreference.com

##### cppreference.com

##### Search

Create account

##### Namespaces

- Page
- Discussion

##### Variants

##### Views

- View
- Edit
- History

##### Actions

# std::nullopt_t

From cppreference.com
< cpp‎ | utility

Defined in header `<optional>` |  |
struct nullopt_t {}; |  | (since C++14)

`std::nullopt_t` is an empty class type used to indicate `optional` type with uninitialized state.

### [edit] See also

nullopt (C++14) | an object of type `nullopt_t` (function) [edit]

Retrieved from "http://en.cppreference.com/mwiki/index.php?title=cpp/utility/nullopt_t&oldid=63101"