[#absl-MakeConstDerefAnySpan-0b]
= xref:absl.adoc[absl]::MakeConstDerefAnySpan
:relfileprefix: ../
:mrdocs:

`MakeConstDerefAnySpan` overloads

== Synopses

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

Constructs a const `AnySpan` dereferencing a view container of pointers&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int& ExplicitArgumentBarrier&period;&period;&period;,
    typename Container,
    typename T = any&lowbar;span&lowbar;internal::DerefElementType&lt;Container const&gt;&gt;
xref:absl/AnySpan.adoc[AnySpan&lt;T const&gt;]
xref:absl/MakeConstDerefAnySpan-0c.adoc[MakeConstDerefAnySpan](Container const& c)
requires absl&colon;&colon;type&lowbar;traits&lowbar;internal&colon;&colon;IsView&lt;Container&gt;&colon;&colon;value;
----

[.small]#xref:absl/MakeConstDerefAnySpan-0c.adoc[_» more&period;&period;&period;_]#

Constructs a const `AnySpan` dereferencing a non&hyphen;view container of pointers&period;


[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    int& ExplicitArgumentBarrier&period;&period;&period;,
    typename Container,
    typename T = any&lowbar;span&lowbar;internal::DerefElementType&lt;Container const&gt;&gt;
xref:absl/AnySpan.adoc[AnySpan&lt;T const&gt;]
xref:absl/MakeConstDerefAnySpan-0f.adoc[MakeConstDerefAnySpan](Container const& c)
requires !absl&colon;&colon;type&lowbar;traits&lowbar;internal&colon;&colon;IsView&lt;Container&gt;&colon;&colon;value;
----

[.small]#xref:absl/MakeConstDerefAnySpan-0f.adoc[_» more&period;&period;&period;_]#

== Return Value

A read&hyphen;only `AnySpan` over the dereferenced elements of `c`&period;

== Parameters

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


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