Constructors
Synopses
Declared in <bdlb_nullableallocatedvalue.h>
Create a nullable object having the null value. Use the currently installed default allocator to supply memory.
Create a nullable object having the value of the specified original object. Use the currently installed default allocator to supply memory.
NullableAllocatedValue(NullableAllocatedValue const& original);
Create a nullable object having the specified value. Use the currently installed default allocator to supply memory.
NullableAllocatedValue(TYPE const& value);
Create a nullable object having the null value. Use the currently installed default allocator to supply memory.
NullableAllocatedValue(bsl::nullopt_t const& nullopt);
Create a nullable object that has the null value and that uses the mechanism of the specified allocator to supply memory.
explicit
NullableAllocatedValue(bsl::allocator<char> const& allocator);
Create a nullable object having the value of the specified original object and that uses the mechanism of the specified allocator to supply memory.
NullableAllocatedValue(
NullableAllocatedValue const& original,
bsl::allocator<char> const& allocator);
Create a nullable object having the specified value and that uses the mechanism of specified allocator to supply memory.
NullableAllocatedValue(
TYPE const& value,
bsl::allocator<char> const& allocator);
Create a nullable object that has the null value and that uses the mechanism of the specified allocator to supply memory.
NullableAllocatedValue(
bsl::nullopt_t const& nullopt,
bsl::allocator<char> const& allocator);
Parameters
Name |
Description |
original |
source nullable used to initialize this object |
value |
value used to initialize this object |
nullopt |
disengaged‐optional tag; value is unused |
allocator |
allocator used to supply memory |
Created with MrDocs