[#BloombergLP-bdlar-ArrayRef-2constructor-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::xref:BloombergLP/bdlar/ArrayRef.adoc[ArrayRef]::ArrayRef
:relfileprefix: ../../../
:mrdocs:

Constructors

== Synopses

Declared in `&lt;bdlar&lowbar;arrayref&period;h&gt;`

Create `ArrayRef` object that type erases the supplied `array` object&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;ARRAY&gt;
explicit
xref:BloombergLP/bdlar/ArrayRef/2constructor-05.adoc[ArrayRef](t&lowbar;ARRAY& array)
requires IsArray&lt;t&lowbar;ARRAY&gt;&colon;&colon;value;
----

[.small]#xref:BloombergLP/bdlar/ArrayRef/2constructor-05.adoc[_» more&period;&period;&period;_]#

Create `ArrayRef` object&period; The behaviour is undefined unless `objectAddress` and `vtable` point to the valid objects&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
xref:BloombergLP/bdlar/ArrayRef/2constructor-00.adoc[ArrayRef](
    void* objectAddress,
    xref:BloombergLP/bdlar/ArrayVtable.adoc[ArrayVtable] const* vtable);
----

[.small]#xref:BloombergLP/bdlar/ArrayRef/2constructor-00.adoc[_» more&period;&period;&period;_]#

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| array object to wrap
| *objectAddress*
| address of the array object to wrap
| *vtable*
| pointer to the vtable for the array type
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
