# std::experimental::nullopt

> C++ Atlas: `cppatlas.com/w/cpp/experimental/optional/nullopt` | Source: https://en.cppreference.com/w/cpp/experimental/optional/nullopt | Domain: Technical specifications

std::experimental::nullopt is a constant of type std::experimental::nullopt_t that is used to indicate optional type with uninitialized state.

## Official Specification Summary (cppreference)

```cpp
// Defined in header <experimental/optional>
constexpr nullopt_t nullopt{/*unspecified*/}; // (library fundamentals TS)
```

`std::experimental::nullopt` is a constant of type `std::experimental::nullopt_t` that is used to indicate `optional` type with uninitialized state.

### See also

- [`nullopt_t`](https://en.cppreference.com/w/cpp/experimental/optional/nullopt_t) (library fundamentals TS): indicator of optional type with uninitialized state (class)

---
Attribution: content from https://en.cppreference.com/w/cpp/experimental/optional/nullopt (cppreference.com), licensed under CC-BY-SA 3.0 and GFDL. Modified: converted to markdown, study notes added. Offline snapshot of 9 February 2025.