[#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. == Synopsis Declared in `<absl/types/any_span.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Element, typename = xref:absl/AnySpan.adoc[EnableIfDifferentElementType<Element>], typename = xref:absl/AnySpan.adoc[EnableIfTransformIsValid<any_span_transform::IdentityT, Element&>]> constexpr explicit AnySpan(xref:absl/AnySpan.adoc[AnySpan<Element>] const& other); ---- == Description Made explicit because it has performance and lifetime consequences. == Parameters [cols="1,4"] |=== | Name| Description | *other* | The source span to wrap. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#