DOKK / manpages / debian 12 / libstdc++-11-doc / std::bad_optional_access.3cxx.en
std::bad_optional_access(3cxx) std::bad_optional_access(3cxx)

std::bad_optional_access - Exception class thrown when a disengaged optional object is dereferenced.

Inherits std::exception.


const char * what () const noexcept override

Exception class thrown when a disengaged optional object is dereferenced.

Definition at line 89 of file optional.

Returns a C-style character string describing the general cause of the current error.

Reimplemented from std::exception.

Definition at line 95 of file optional.

Generated automatically by Doxygen for libstdc++ from the source code.

Thu Feb 16 2023 libstdc++