Constructs a span wrapping another span of a different element type.
Declared in <absl/types/any_span.h>
template<
typename Element,
typename = EnableIfDifferentElementType<Element>,
typename = EnableIfTransformIsValid<any_span_transform::IdentityT, Element&>>
constexpr
explicit
AnySpan(AnySpan<Element> const& other);
Made explicit because it has performance and lifetime consequences.
| Name | Description |
|---|---|
| other | The source span to wrap. |