Explicitly create an optional by moving 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,
BloombergLP::bslmf::MovableRef_Deduced<optional<t_ANY_TYPE>> 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