std::bad_optional_access(3cxx) std::bad_optional_access(3cxx)
NAME
std::bad_optional_access - Exception class thrown when a disengaged
optional object is dereferenced.
SYNOPSIS
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.
Author
Generated automatically by Doxygen for libstdc++ from the source code.
libstdc++ Thu Dec 18 2025 std::bad_optional_access(3cxx)
Generated by dwww version 1.14 on Sat Jun 13 11:25:01 CEST 2026.