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

Return a reference to a `char` array matching `array` in length&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
char(&
sizer(TYPE(& array)[]))[];
----

== Description

The referenced array has the same number of elements as the specified `array` of template parameter `LENGTH` elements of template parameter `TYPE`&period; This function is _not_ implemented and can only be used in a non&hyphen;evaluated context&period; The function is used together with `sizeof` to obtain a constant expression with the `LENGTH` of the `array`&period; See `BDLB&lowbar;ARRAYUTIL&lowbar;SIZE` and `BDLB&lowbar;ARRAYUTIL&lowbar;LENGTH`&period;

== Return Value

reference to a `char` array with the same length as `array`

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| array whose length determines the returned type
|===


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