Create a nullable object by moving from the specified original.

Synopsis

Declared in <bdlb_nullablevalue.h>

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

Description

Create a nullable object having the same value as the specified original object by moving the contents of original to the newly‐created object. If TYPE takes an optional allocator at construction, 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<TYPE>::value.

Parameters

Name

Description

original

object from which to move

Created with MrDocs