Standard‐library polyfills.

Description

Stand‐ins for standard‐library features not yet available on every supported compiler. Each becomes an alias to the standard version once that feature is universally available.

Types

Name

Description

bad_expected_access

Base class for accessing an empty expected.

expected

A container holding an error or a value.

unexpect_t

Tag type used to select unexpected construction.

unexpected

Holds an unexpected error value for expected.

Functions

Name

Description

Unexpected

Construct an unexpected value, deducing the error type.

swap

Swap contents with another expected.

operator==

Equality operators

Variables

Name

Description

unexpect

Tag object to request unexpected construction.

Using Declarations

Name

Description

reference_constructs_from_temporary_v

true if binding a reference of type To to an expression of type From would bind to a temporary. Mirrors std::reference_constructs_from_temporary_v.

reference_converts_from_temporary_v

true if a reference of type To would bind to a temporary materialized from an expression of type From. Mirrors std::reference_converts_from_temporary_v.

Created with MrDocs