[#BloombergLP-bdlar-ArrayConstRef]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlar.adoc[bdlar]::ArrayConstRef
:relfileprefix: ../../
:mrdocs:

This class provides a type&hyphen;erased, read&hyphen;only reference to an array value that dispatches operations through a vtable&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
class ArrayConstRef;
----

== Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/ArrayConstRef/2constructor-0c.adoc[`ArrayConstRef`]         [.small]#[constructor]#
| Constructors
| xref:BloombergLP/bdlar/ArrayConstRef/accessElement.adoc[`accessElement`] 
| Invoke the specified `accessor` on the array element at the specified `index`&period; The supplied `accessor` must be a callable type that can be called as if it had the following signature&colon; &grave; int accessor(const ELEMENT&amp; ref)&semi; &grave; Return the value from the invocation of `accessor`&period; The behavior is undefined unless `0 &lt;&equals; index &lt; size()`&period;
| xref:BloombergLP/bdlar/ArrayConstRef/elementCategory.adoc[`elementCategory`] 
| Return the element type category of the wrapped array&period;
| xref:BloombergLP/bdlar/ArrayConstRef/objectAddress.adoc[`objectAddress`] 
| Return a pointer to the wrapped array&period;
| xref:BloombergLP/bdlar/ArrayConstRef/size.adoc[`size`] 
| Return the number of elements in the wrapped array&period;
| xref:BloombergLP/bdlar/ArrayConstRef/vtable.adoc[`vtable`] 
| Return a pointer to the vtable&period;
| xref:BloombergLP/bdlar/ArrayConstRef/xsdName.adoc[`xsdName`] 
| Return the `bdlat&lowbar;TypeName&colon;&colon;xsdName` value for the underlying object&period;
|===


== Non-Member Functions

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bdlar/bdlat_TypeName_xsdName-0a.adoc[`bdlat&lowbar;TypeName&lowbar;xsdName`]
| Return the XSD name for the specified `ref` using the specified `format`&period;
| xref:BloombergLP/bdlar/bdlat_arrayAccessElement-01.adoc[`bdlat&lowbar;arrayAccessElement`]
| Invoke the specified `accessor` on the array element at the specified `index` of the specified `array`&period; Return the value from the invocation of `accessor`&period;
| xref:BloombergLP/bdlar/bdlat_arraySize-00.adoc[`bdlat&lowbar;arraySize`]
| Return the number of elements in the specified `array`&period;
|===


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