BloombergLP::bslstl::Optional_Base::Optional_Base

Create an Optional_Base object.

Synopsis

Declared in <bslstl_optional.h>

Optional_Base(
    std::allocator_arg_t allocatorArg,
    allocator_type allocator,
    Optional_Base const& original);

Description

If the specified original contains a value, create an Optional_Base object whose contained value is initialized from *original. Otherwise, create a disengaged Optional_Base object. Use the specified allocator to supply memory.

Parameters

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