Create an Optional_Base object.

Synopsis

Declared in <bslstl_optional.h>

Optional_Base(BloombergLP::bslmf::MovableRef<Optional_Base> original) noexcept(/* see-below */);

Description

Create an Optional_Base object having the same value as the specified original object by moving the contents of original to the newly‐created object. The allocator associated with original is propagated for use in the newly‐created object. original is left in a valid, but unspecified state.

Exception specification

This function is potentially-throwing unless bsl::is_nothrow_move_constructible<t_TYPE>::value.

Parameters

Name

Description

original

source optional used to initialize this object

Created with MrDocs