[#absl-MakeConstAnySpan-08]
= xref:absl.adoc[absl]::MakeConstAnySpan
:relfileprefix: ../
:mrdocs:

Constructs a const `AnySpan` from a pointer and a size&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int& ExplicitArgumentBarrier&period;&period;&period;,
    typename T&gt;
xref:absl/AnySpan.adoc[AnySpan&lt;T const&gt;]
MakeConstAnySpan(
    T const* ptr,
    std::size&lowbar;t size);
----

== Return Value

A read&hyphen;only `AnySpan` over `size` elements starting at `ptr`&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *ptr*
| Pointer to the first element&period;
| *size*
| Number of elements&period;
|===


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