Explicitly create an optional from the specified std::optional 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,
    std::optional<t_ANY_TYPE> const& original);

Parameters

Name

Description

allocatorArg

tag selecting the allocator‐extended constructor

allocator

allocator used to supply memory

original

source optional used to initialize this object

Created with MrDocs