Skip to content

Search topics & cppreference

Search all study topics, concept maps, and 6,587 C++ and C reference pages.

std::experimental::nullopt

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

NotebookLM
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

(library fundamentals TS)
indicator of optional type with uninitialized state
(class)

Content from this page on cppreference.com, licensed under CC-BY-SA 3.0 and GFDL. Modified: restyled, site navigation removed, code windows added. Offline snapshot of 9 February 2025.