Create an Optional_Base whose value is forwarded from value.

Synopsis

Declared in <bslstl_optional.h>

template<class t_ANY_TYPE>
Optional_Base(
    std::allocator_arg_t allocatorArg,
    AllocType allocator,
    BloombergLP::bslstl::Optional_ConstructFromForwardRef tag,
    t_ANY_TYPE&& value);

Parameters

Name

Description

allocatorArg

tag selecting the allocator‐extended constructor

allocator

allocator used to supply memory

tag

tag selecting this constructor overload

value

value compared with or used to initialize the optional

Created with MrDocs