BloombergLP::bdlar::NullableValueRef::NullableValueRef

Constructors

Synopses

Declared in <bdlar_nullablevalueref.h>

Create NullableValueRef object that type erases the supplied nullable object.

template<class t_NULLABLE>
explicit
NullableValueRef(t_NULLABLE& nullable)
requires IsNullable<t_NULLABLE>::value;
» more...

Create NullableValueRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.

NullableValueRef(
    void* objectAddress,
    NullableValueVtable const* vtable);
» more...

Parameters

NameDescription
nullablenullable value object to wrap
objectAddressaddress of the nullable-value object to wrap
vtablepointer to the vtable for the nullable-value type