[#absl-AnySpan-2constructor-09e] = xref:absl.adoc[absl]::xref:absl/AnySpan.adoc[AnySpan]::AnySpan :relfileprefix: ../../ :mrdocs: Constructs a span wrapping a fixed‐size mutable array (transform by ref). == Synopsis Declared in `<absl/types/any_span.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< typename Element, xref:absl/AnySpan/size_type.adoc[size_type] N, typename Transform = xref:absl/any_span_transform/IdentityT.adoc[any_span_transform::IdentityT], typename = Element, typename = xref:absl/AnySpan.adoc[EnableIfTransformIsValid<Transform, Element&>], xref:absl/AnySpan.adoc[EnableIfTransformIsByRef<Transform>] = true> constexpr AnySpan( Element(& array)[], Transform const& transform = any_span_transform::Identity()); ---- == Description The transform must be a function object whose const `operator()` takes an `Element` and returns a reference to `T` or a compatible object. Both the transform and array must outlive this span. == Parameters [cols="1,4"] |=== | Name| Description | *array* | The array whose elements the span refers to. | *transform* | Functor applied to each element on access. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#