Create a nullable object by converting the specified value.
Synopsis
Declared in <bdlb_nullablevalue.h>
template<class BDE_OTHER_TYPE>
NullableValue(
BloombergLP::bslmf::MovableRef_Deduced<NullableValue<BDE_OTHER_TYPE>> value,
allocator_type const& allocator)
requires bsl::is_convertible<BDE_OTHER_TYPE, TYPE>::value &&
!bsl::is_same<bsl::optional<BDE_OTHER_TYPE>, TYPE>::value;
Description
Create a nullable object having the same value as the specified value (of NullableValue<BDE_OTHER_TYPE>) converted to TYPE, using the specified allocator to supply memory.
Parameters
Name |
Description |
value |
nullable object from which to move |
allocator |
allocator used to supply memory |
Created with MrDocs