Constructs a const AnySpan from a non‐view container or array.

Synopsis

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;

Return Value

A read‐only AnySpan over the elements of c.

Parameters

Name

Description

c

The container whose elements the span refers to.

Created with MrDocs