Constructs a span wrapping another span, applying a transform (by copy).
Declared in <absl/types/any_span.h>
template<
typename Element,
typename Transform,
typename = EnableIfTransformIsValid<Transform, Element&>,
EnableIfTransformIsByCopy<Transform> = true>
constexpr
explicit
AnySpan(
AnySpan<Element> const& other,
Transform const& transform);
Made explicit because it has lifetime consequences.
| Name | Description |
|---|---|
| other | The source span to wrap. |
| transform | Functor applied to each element on access. |