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.

Synopsis

Declared in <bslstl_optional.h>

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

Exception specification

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

Created with MrDocs