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

AllocType

Protected Member Functions

Name

Description

Optional_Base [constructor]

Constructors

assignOrEmplace

If *this holds an object, assign to that object the value of the specified rhs, converted to t_TYPE. Otherwise, construct a held object from rhs, converted to t_TYPE.

dereferenceRaw

dereferenceRaw overloads

Created with MrDocs