Create a nullable object by moving original using allocator.
Synopsis
Declared in <bdlb_nullablevalue.h>
NullableValue(
bslmf::MovableRef<NullableValue> original,
allocator_type const& allocator);
Description
Create a nullable object having the same value as the specified original object but using the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. The contents of original are moved to the newly‐created object using the extended move constructor for TYPE. original is left in a valid but unspecified state. Note that this constructor will not participate in overload resolution unless TYPE is allocator aware.
Parameters
Name |
Description |
original |
object from which to move |
allocator |
allocator used to supply memory |
Created with MrDocs