[#absl-MakeConstSpan-06]
= xref:absl.adoc[absl]::MakeConstSpan
:relfileprefix: ../
:mrdocs:

Constructs a `Span&lt;const T&gt;` from a C array&period;

== Synopsis

Declared in `&lt;absl&sol;types&sol;span&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int& ExplicitArgumentBarrier&period;&period;&period;,
    typename T,
    size&lowbar;t N&gt;
constexpr
xref:absl/Span.adoc[Span&lt;T const&gt;]
MakeConstSpan(T const(& array)[]) noexcept;
----

== Return Value

A read&hyphen;only span over all elements of `array`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *array*
| The array whose elements the span refers to&period;
|===


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