BDE 4.14.0 Production release
Loading...
Searching...
No Matches
bslstl_badvariantaccess

Outline

Purpose

Provide an exception class thrown by bsl::variant.

Classes

See also
bslstl_variant, bslstl_stdexceptionutil

Description

This component provides the bsl::bad_variant_access exception class. This exception is thrown by bsl::get when a bsl::variant does not contain the requested alternative and bsl::visit when a bsl::variant does not contain a value. If std::variant is available, bsl::bad_variant_access is an alias to std::bad_variant_access.