Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Defines the type of objects thrown as exceptions to report the situation where an attempt is made to access the value of an optional
object that doesn't contain a value.
Syntax
class bad_optional_access : public exception
{
public:
bad_optional_access() noexcept;
bad_optional_access(const bad_optional_access&) noexcept;
bad_optional_access& operator=(const bad_optional_access&) noexcept;
const char* what() const noexcept override;
};