BloombergLP::bslstl::Optional_Base::Optional_Base

Create an Optional_Base object.

Synopsis

Declared in <bslstl_optional.h>

template<class t_ANY_TYPE>
Optional_Base(
    BloombergLP::bslstl::Optional_ConstructFromForwardRef tag,
    t_ANY_TYPE&& value);

Description

Create an Optional_Base object whose contained value is initialized by forwarding from the specified value. Use the currently installed default allocator to supply memory.

Parameters

NameDescription
tagtag selecting this constructor overload
valuevalue compared with or used to initialize the optional