[#absl-AnySpan-2constructor-01f5]
= xref:absl.adoc[absl]::xref:absl/AnySpan.adoc[AnySpan]::AnySpan
:relfileprefix: ../../
:mrdocs:

Constructs a span wrapping another span of a different element type&period;

== Synopsis

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

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
template&lt;
    typename Element,
    typename = xref:absl/AnySpan.adoc[EnableIfDifferentElementType&lt;Element&gt;],
    typename = xref:absl/AnySpan.adoc[EnableIfTransformIsValid&lt;any&lowbar;span&lowbar;transform::IdentityT, Element&&gt;]&gt;
constexpr
explicit
AnySpan(xref:absl/AnySpan.adoc[AnySpan&lt;Element&gt;] const& other);
----

== Description

Made explicit because it has performance and lifetime consequences&period;

== Parameters

[cols="1,4"]
|===
| Name| Description
| *other*
| The source span to wrap&period;
|===


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