std::nullopt_t(3cxx)
π NAME π
std::nullopt_t β the tag type that goes "nope, we're done here" and disengages your optional objects π
This page lives in section 3cxx of the manual, bestie.
β¨ SYNOPSIS β¨
#include <optional>
πΈ Public Types πΈ
enum class _Construct { _Token }
π¦ Public Member Functions π¦
constexpr nullopt_t(_Construct) noexcept
π Detailed Description π
std::nullopt_t β tag type to disengage optional objects. That's literally its whole job and it ate π
π Author π
Generated automatically by Doxygen for libstdc++ from the source code. Not a human, just a very diligent little robot π§
ok so real talk β this one's short but it's iconic.std::nullopt_tis the type ofstd::nullopt, the thing you drop into anstd::optionalwhen you want it empty. No cap. β¨
This page came to you courtesy of libstdc++ (that's the footer energy, babe), and it's filed right here under std::nullopt_t(3cxx). Stay slay, take care of your optionals, and remember: disengaging is self-care π«Άππ
π¦ where this page comes from
- ubuntu resolute: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu resolute: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu resolute: libstdc++-13-doc 13.4.0-10ubuntu1
- ubuntu stonking: libstdc++-11-doc 11.5.0-11ubuntu2
- ubuntu stonking: libstdc++-12-doc 12.5.0-9ubuntu1
- ubuntu stonking: libstdc++-13-doc 13.5.0-1ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms