[#BloombergLP-bdlb-ArrayUtil-size]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlb.adoc[bdlb]::xref:BloombergLP/bdlb/ArrayUtil.adoc[ArrayUtil]::size
:relfileprefix: ../../../
:mrdocs:

Return the number of elements in the specified `array`&period;

== Synopsis

Declared in `&lt;bdlb&lowbar;arrayutil&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    class TYPE,
    std::size&lowbar;t LENGTH&gt;
static
std::size&lowbar;t
size(TYPE(& array)[]);
----

== Description

The array consists of template parameter `LENGTH` elements of template parameter `TYPE`&period; This method is synonymous with the `length` method&period;

== Return Value

number of elements in `array`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| array whose element count is returned
|===


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