BloombergLP::bslstl::Optional_Base<t_TYPE, false>

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

NameDescription
std::optional<t_TYPE>Class template for optional values.

Member Functions

Name
operator BloombergLP::bslmf::NestedTraitDeclaration<Optional_Base, IsBitwiseCopyable, BloombergLP::bslmf::IsBitwiseCopyable<t_TYPE>::value>
operator BloombergLP::bslmf::NestedTraitDeclaration<Optional_Base, IsBitwiseMoveable, BloombergLP::bslmf::IsBitwiseMoveable<t_TYPE>::value>

Protected Types

Name
AllocType

Protected Member Functions

NameDescription
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