Create a nullable object from the specified value using the specified allocator.
Synopsis
Declared in <bdlb_nullablevalue.h>
template<class BDE_OTHER_TYPE>
NullableValue(
BloombergLP::bslmf::MovableRef_Deduced<bsl::optional<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;
Parameters
Name |
Description |
value |
optional object from which to move |
allocator |
allocator used to supply memory |
Created with MrDocs