Create a copy of original that uses the specified allocator.
Synopsis
Declared in <bdlb_nullablevalue.h>
NullableValue(
NullableValue const& original,
allocator_type const& allocator);
Description
Create a nullable object that has the value of the specified original object and uses the specified allocator (e.g., the address of a bslma::Allocator object) to supply memory. Note that this constructor will not participate in overload resolution unless TYPE is allocator aware.
Parameters
Name |
Description |
original |
object providing the initial value |
allocator |
allocator used to supply memory |
Created with MrDocs