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_MoveConstructFromStdOptional tag,
    std::optional<t_ANY_TYPE>&& original);

Description

Create a disengaged Optional_Base object if the specified original object is disengaged, and an Optional_Base object with the value of original.value() converted to t_TYPE otherwise. Use the currently installed default allocator to supply memory.

Parameters

NameDescription
tagtag selecting this constructor overload
originalsource optional used to initialize this object