Constructs a span wrapping a fixed-size mutable array (transform by copy).
Declared in <absl/types/any_span.h>
template<
typename Element,
size_type N,
typename Transform,
typename = Element,
typename = EnableIfTransformIsValid<Transform, Element&>,
EnableIfTransformIsByCopy<Transform> = true>
constexpr
AnySpan(
Element(& array)[],
Transform const& transform);
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.
| Name | Description |
|---|---|
| array | The array whose elements the span refers to. |
| transform | Functor applied to each element on access. |