std::experimental::bad_optional_access (3) - Linux Manuals

std::experimental::bad_optional_access: std::experimental::bad_optional_access


std::experimental::bad_optional_access - std::experimental::bad_optional_access


Defined in header <experimental/optional>
class bad_optional_access; (library fundamentals TS)

Defines a type of object to be thrown by std::experimental::optional::value when accessing an optional object that does not contain a value.
 std-bad optional access-inheritance.svg
Inheritance diagram

Member functions

              constructs the exception object
constructor (public member function)

Inherited from std::exception

Member functions

destructor destroys the exception object
             (virtual public member function of std::exception)

what returns an explanatory string
             (virtual public member function of std::exception)