BloombergLP::bdlar::NullableValueConstRef::NullableValueConstRef

Constructors

Synopses

Declared in <bdlar_nullablevalueref.h>

Create NullableValueConstRef object that wraps the same object as the specified object.

NullableValueConstRef(NullableValueRef const& object);
» more...

Create a const reference that type-erases nullable.

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

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

NullableValueConstRef(
    void const* objectAddress,
    NullableValueConstVtable const* vtable);
» more...

Parameters

NameDescription
objectnon-const nullable-value reference to rewrap as const
nullablenullable value object to wrap
objectAddressaddress of the nullable-value object to wrap
vtablepointer to the const vtable for the nullable-value type