[#BloombergLP-bdld-Datum-createArrayReference-0b]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdld.adoc[bdld]::xref:BloombergLP/bdld/Datum.adoc[Datum]::createArrayReference
:relfileprefix: ../../../
:mrdocs:

Return, by value, a datum referring to the specified `array`, having the specified `length`, using the specified `allocator` to supply memory (if needed)&period; `array` is not copied, and is not freed when the returned object is destroyed with `Datum&colon;&colon;destroy`&period; The behavior is undefined unless `array` contains at least `length` elements&period; The behavior is also undefined unless &grave;length &lt;&equals; UINT&lowbar;MAX&grave;&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
static
xref:BloombergLP/bdld/Datum.adoc[Datum]
createArrayReference(
    xref:BloombergLP/bdld/Datum.adoc[Datum] const* array,
    xref:BloombergLP/bdld/Datum/SizeType.adoc[SizeType] length,
    xref:BloombergLP/bdld/Datum/AllocatorType.adoc[AllocatorType] const& allocator);
----


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