Types

Name

Description

bad_optional_access

Exception thrown when trying to access the value of an empty optional

in_place_t

Tag type for in‐place construction

nullopt_t

Tag type for empty optional construction

optional

Optional Objects

optional<T&>

A specialization of optional for references.

Functions

Name

Description

make_optional

Make an optional

swap

Swap

operator==

Equality operators

operator!=

Inequality operators

operator<

Less‐than operators

operator<=

Less‐than‐or‐equal operators

operator>

Greater‐than operators

operator>=

Greater‐than‐or‐equal operators

operator<=>

Three‐way comparison operators

Variables

Name

Description

in_place

Tag for in‐place construction

nullopt

Tag to disengage optional objects.

Concepts

Name

Description

is_derived_from_optional

Concept for checking if derived from optional.

Created with MrDocs