std::experiment...optional_access(3cxx)
okay bestie, welcome to the 3cxx manual page for std::experimental::bad_optional_access π this is the exception that shows up when you dereference a disengaged optional object. no cap, itβs giving βyou tried to access a value that isnβt thereβ energy.
π NAME π
std::experimental::bad_optional_accessβ Exception class thrown when a disengaged optional object is dereferenced.
β¨ SYNOPSIS β¨
#include <optional>
Inherits std::logic_error.
π Public Member Functions π
bad_optional_access (const char *__arg)virtual const char * what () const noexcept
π¦ Detailed Description π¦
Exception class thrown when a disengaged optional object is dereferenced. thatβs the whole plot, bestie: no engaged value, but you dereferenced it anyway, and this class is the icon that catches the fallout π
π§ Member Function Documentation π§
πΈ what() β virtual, noexcept, inherited πΈ
virtual const char * std::logic_error::what () const [virtual], [noexcept], [inherited]
- Returns: a C-style character string describing the general cause of the current error (the same string passed to the ctor).
- Reimplemented from:
std::exception. - Reimplemented in:
std::future_error.
π Author π
Generated automatically by Doxygen for libstdc++ from the source code.
xoxo, your libstdc++ docs bestie π β source/version: libstdc++ (Doxygen-generated), manual: 3cxx; date: not printed on this footer, so Iβm not making one up, periodt. π
π¦ where this page comes from
- ubuntu noble: libstdc++-14-doc 14-20240412-0ubuntu1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms