std::bad_optional_access3cxx
Exception class thrown when a disengaged optional object is dereferenced.
Usage
#include <optional>
Inherits std::exception.
Public Member Functions
const char * what () const noexcept override
Detailed Description
Exception class thrown when a disengaged optional object is dereferenced.
Member Function Documentation
const char * std::bad_optional_access::what () const [inline], [override], [virtual], [noexcept]
Returns a C-style character string describing the general cause of the current error.
Reimplemented from std::exception.
Releases
2 releases since Debian 12 (Bookworm); the text changed 1 time.