Constructors

Synopses

Declared in <bdlar_arrayref.h>

Create ArrayRef object that type erases the supplied array object.

template<class t_ARRAY>
explicit
ArrayRef(t_ARRAY& array)
requires IsArray<t_ARRAY>::value;

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

ArrayRef(
    void* objectAddress,
    ArrayVtable const* vtable);

Parameters

Name

Description

array

array object to wrap

objectAddress

address of the array object to wrap

vtable

pointer to the vtable for the array type

Created with MrDocs