bsl::optional::optional

Explicitly create an optional from the specified original using the specified allocator.

Synopsis

Declared in <bslstl_optional.h>

template<class t_ANY_TYPE>
explicit
optional(
    std::allocator_arg_t allocatorArg,
    AllocType allocator,
    optional<t_ANY_TYPE> const& original);

Parameters

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