Create an Optional_Base object.
Synopsis
Declared in <bslstl_optional.h>
template<class t_ANY_TYPE>
constexpr
Optional_Base(
BloombergLP::bslstl::Optional_MoveConstructFromOtherOptional tag,
Optional_Base<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() (of t_ANY_TYPE) converted to t_TYPE otherwise. original is left in a valid but unspecified state.
Parameters
Name |
Description |
tag |
tag selecting this constructor overload |
original |
source optional used to initialize this object |
Created with MrDocs