Create a nullable wrapper that refers to the same target as ref.
Synopsis
Declared in <bdlb_nullablevalueref.h>
ConstNullableValueRef(NullableValueRef<TYPE> const& ref);
Description
Create a nullable object wrapper that refers to the target object of the specified ref wrapper. Note that the created wrapper does not own a copy of the underlying nullable value, but instead refers to to it, and so the lifetime of the target must exceed the lifetime of the created wrapper.
Parameters
Name |
Description |
ref |
wrapper whose target is shared |
Created with MrDocs