libstdc++
std::bad_optional_access Class Reference
Inheritance diagram for std::bad_optional_access:
[legend]

Public Member Functions

const char * what () const noexcept override
 

Detailed Description

Exception class thrown when a disengaged optional object is dereferenced.

Definition at line 89 of file optional.

Member Function Documentation

◆ what()

const char * std::bad_optional_access::what ( ) const
inlineoverridevirtualnoexcept

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.


The documentation for this class was generated from the following file: