BloombergLP::bslstl::Optional_Base::Optional_Base

Create an optional from original using allocator.

Synopsis

Declared in <bslstl_optional.h>

template<class t_ANY_TYPE>
Optional_Base(
    std::allocator_arg_t allocatorArg,
    allocator_type allocator,
    BloombergLP::bslstl::Optional_CopyConstructFromStdOptional tag,
    std::optional<t_ANY_TYPE> const& original);

Description

Otherwise, create a disengaged Optional_Base object. Use the specified allocator to supply memory.

Parameters

NameDescription
allocatorallocator used to supply memory
originalsource value used to initialize the optional
allocatorArgtag selecting the allocator-extended constructor
tagtag selecting this constructor overload