std::experimental::nullopt(3)

πŸ“¦ version 2024.07.05, in nixpkgs unstable, opensuse-leap 16.0

πŸ’… std::experimental::nullopt(3) πŸ’…

okay bestie, this is the <pink>C++ Standard Libary</pink> manual page for std::experimental::nullopt(3) β€” yes, that’s the manual name exactly as it appears, iykyk 🫢. Buckle up, it’s short and iconic.


✨ NAME ✨

std::experimental::nullopt β€” std::experimental::nullopt


🌸 Synopsis 🌸

Defined in header <experimental/optional>

constexpr nullopt_t nullopt{/*unspecified*/};

(library fundamentals TS)

okay so <purple>std::experimental::nullopt</purple> is a constant of type std::experimental::nullopt_t that is used to indicate optional type with uninitialized state. literally that’s the whole vibe: it’s the little constant that says β€œthis optional type is in its uninitialized state,” no cap ✨.


πŸ‘€ See also πŸ‘€

  • nullopt_t β€” indicator of optional type with uninitialized state (library fundamentals TS) (class)

🏷️ Category 🏷️

  • Noindexed pages

byeeee πŸ’œ β€” source/version: http://cppreference.com, dated 2024.06.10 πŸŽ€

πŸ“¦ where this page comes from