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;
Create NullableValueRef object. The behaviour is undefined unless objectAddress and vtable point to the valid objects.
NullableValueRef(
void* objectAddress,
NullableValueVtable const* vtable);
Parameters
Name |
Description |
nullable |
nullable value object to wrap |
objectAddress |
address of the nullable‐value object to wrap |
vtable |
pointer to the vtable for the nullable‐value type |
Created with MrDocs