std::experimental::bad_optional_access

Header: <experimental/optional>

Defines a type of object to be thrown by std::experimental::optional::value when accessing an optional object that does not contain a value.

# Declarations

class bad_optional_access;

(library fundamentals TS)

# Parameters

# Return value

*this

# Notes

Implementations are allowed but not required to override what().