BloombergLP::bdlar::ArrayConstRef::ArrayConstRef

Constructors

Synopses

Declared in <bdlar_arrayref.h>

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

ArrayConstRef(ArrayRef const& object);
» more...

Create ArrayConstRef object that type erases the supplied array object.

template<class t_ARRAY>
explicit
ArrayConstRef(t_ARRAY const& array)
requires IsArray<t_ARRAY>::value;
» more...

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

ArrayConstRef(
    void const* objectAddress,
    ArrayConstVtable const* vtable);
» more...

Parameters

NameDescription
objectnon-const array reference to rewrap as const
arrayarray object to wrap
objectAddressaddress of the array object to wrap
vtablepointer to the const vtable for the array type