Constructors

Synopses

Declared in <bdlar_arrayref.h>

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

ArrayConstRef(ArrayRef const& object);

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;

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

ArrayConstRef(
    void const* objectAddress,
    ArrayConstVtable const* vtable);

Parameters

Name

Description

object

non‐const array reference to rewrap as const

array

array object to wrap

objectAddress

address of the array object to wrap

vtable

pointer to the const vtable for the array type

Created with MrDocs