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

NameDescription
operator BloombergLP::bslmf::NestedTraitDeclaration<Optional_Base, IsBitwiseCopyable, BloombergLP::bslmf::IsBitwiseCopyable<t_TYPE>::value> Nested trait declaration for bslmf::IsBitwiseCopyable.
operator BloombergLP::bslmf::NestedTraitDeclaration<Optional_Base, IsBitwiseMoveable, BloombergLP::bslmf::IsBitwiseMoveable<t_TYPE>::value> Nested trait declaration for bslmf::IsBitwiseMoveable.

Protected Types

NameDescription
AllocType Dummy allocator type used when t_TYPE is not allocator-aware.

Protected Member Functions

NameDescription
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.