[#BloombergLP-bdld-DatumArrayRef-2constructor-07]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/DatumArrayRef.adoc[DatumArrayRef]::DatumArrayRef
:relfileprefix: ../../../
:mrdocs:

Create a read&hyphen;only view of the specified datum array&period;

== Synopsis

Declared in `&lt;bdld&lowbar;datum&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
DatumArrayRef(
    xref:BloombergLP/bdld/Datum.adoc[Datum] const* data,
    xref:BloombergLP/bdld/DatumArrayRef/SizeType.adoc[SizeType] length);
----

== Description

Create a `DatumArrayRef` object having the specified `data` and `length`&period; The behavior is undefined unless `0 !&equals; data` or &grave;0 &equals;&equals; length&grave;&period; Note that the pointer to the array is just copied&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *data*
| pointer to the first array element
| *length*
| number of elements in the array
|===


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