Bemærk
Adgang til denne side kræver godkendelse. Du kan prøve at logge på eller ændre mapper.
Adgang til denne side kræver godkendelse. Du kan prøve at ændre mapper.
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;
};