std::bad_optional_access - Man Page

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.

Definition at line 84 of file optional.

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.

Definition at line 90 of file optional.

Author

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

Info

Wed Feb 10 2021 libstdc++