Types

Name

Description

bad_optional_access

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

hash

hash<optional<T>>

in_place_t

Tag type for in place construction

nullopt_t

Tag type for nullopt construction

optional

optional<T&>

Functions

Name

Description

make_optional

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

nullopt

Tag to disengage optional objects.

Concepts

Name

is_derived_from_optional

Created with MrDocs