Specialization of Optional_Base for value_type that is not allocator‐aware when std::optional is available.

Synopsis

Declared in <bslstl_optional.h>

template<class t_TYPE>
class Optional_Base<t_TYPE, false>
    : public std::optional<t_TYPE>

Base Classes

Name

Description

std::optional<t_TYPE>

Class template for optional values.

Member Functions

Protected Types

Name

Description

AllocType

Dummy allocator type used when t_TYPE is not allocator‐aware.

Protected Member Functions

Name

Description

Optional_Base [constructor]

Constructors

assignOrEmplace

Return a reference to the contained value without checking engagement.

dereferenceRaw

Return a reference to the contained value without checking engagement.

Created with MrDocs