BDE 4.39.x Production Release
Loading...
Searching...
No Matches
bslstl_badoptionalaccess

Provide an exception class thrown by bsl::optional.

Outline

Purpose

Provide an exception class thrown by bsl::optional.

Classes

Canonical Header

bsl_optional.h

See also
bslstl_optional, bslstl_stdexceptionutil

Description

This component provides a bsl::bad_optional_access exception class. This exception is thrown by bsl::optional::value when accessing a bsl::optional object that does not contain a value. If std::optional implementation is available, bsl::bad_optional_access is an alias to std::bad_optional_access.