Constructs a const AnySpan from a non-view container or array.
Declared in <absl/types/any_span.h>
template<
int& ExplicitArgumentBarrier...,
typename Container,
typename T = any_span_internal::ElementType<Container const>>
AnySpan<T const>
MakeConstAnySpan(Container const& c)
requires !absl::type_traits_internal::IsView<Container>::value;
A read-only AnySpan over the elements of c.
| Name | Description |
|---|---|
| c | The container whose elements the span refers to. |