std::bad_optional_access (3) - Linux Manuals
std::bad_optional_access: std::bad_optional_access
NAME
std::bad_optional_access - std::bad_optional_access
Synopsis
Defined in header <optional>
class bad_optional_access; (since C++17)
Defines a type of object to be thrown by std::optional::value when accessing an optional object that does not contain a value.
std-bad optional access-inheritance-lwg2806.svg
Inheritance diagram
Member functions
constructor (public member function)
Inherited from std::exception
Member functions
destructor destroys the exception object
[virtual]
what returns an explanatory string
[virtual]