[#BloombergLP-bslmf-ArrayToConstPointer-0f2]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bslmf.adoc[bslmf]::ArrayToConstPointer
:relfileprefix: ../../
:mrdocs:

Meta&hyphen;function that converts an array type to a `const` pointer type&period;

== Synopsis

Declared in `&lt;bslmf&lowbar;arraytopointer&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;class t&lowbar;TYPE&gt;
struct ArrayToConstPointer;
----

== Description

This meta&hyphen;function provides a nested `Type` alias that is a pointer to `const` element type when the (template parameter) `t&lowbar;TYPE` is an array, and is `const t&lowbar;TYPE` itself otherwise&period; Use this when an explicitly `const` pointer type is required&period;

== Type Aliases

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmf/ArrayToConstPointer-0f2/Type.adoc[`Type`] 
| This `typedef` is an alias for the `const` pointer type corresponding to `t&lowbar;TYPE` when `t&lowbar;TYPE` is an array, and for `const t&lowbar;TYPE` otherwise&period;
|===


== Specializations

[cols="1,4"]
|===
| Name| Description
| xref:BloombergLP/bslmf/ArrayToConstPointer-0fa.adoc[`ArrayToConstPointer&lt;t&lowbar;TYPE&&gt;`] 
| This partial specialization of `ArrayToConstPointer` for lvalue references converts the referenced array type to a `const` pointer type&period;
|===



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