[#absl-MakeAnySpan-0a]
= xref:absl.adoc[absl]::MakeAnySpan
:relfileprefix: ../
:mrdocs:

Constructs an `AnySpan` from a non&hyphen;view container or array&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 Container,
    typename T = any&lowbar;span&lowbar;internal::ElementType&lt;Container&gt;&gt;
xref:absl/AnySpan.adoc[AnySpan&lt;T&gt;]
MakeAnySpan(Container& c)
requires !absl&colon;&colon;type&lowbar;traits&lowbar;internal&colon;&colon;IsView&lt;std&colon;&colon;remove&lowbar;cv&lowbar;t&lt;Container&gt;&gt;&colon;&colon;value;
----

== Return Value

An `AnySpan` over the elements of `c`&period;

== Parameters

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


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