BloombergLP::bdlb::NullableValueRef::NullableValueRef

Create a nullable wrapper that refers to opt.

Synopsis

Declared in <bdlb_nullablevalueref.h>

NullableValueRef(bsl::optional<TYPE>& opt);

Description

Create a nullable object wrapper that refers to the specified opt object. Note that the created wrapper does not own a copy of the underlying nullable value, but instead refers to it, and so the lifetime of opt must exceed the lifetime of the created wrapper.

Parameters

NameDescription
optnullable object to wrap