Constructs an AnySpan that dereferences a non‐view container of pointers.

Synopsis

Declared in <absl/types/any_span.h>

template<
    int& ExplicitArgumentBarrier...,
    typename Container,
    typename T = any_span_internal::DerefElementType<Container>>
AnySpan<T>
MakeDerefAnySpan(Container& c)
requires !absl::type_traits_internal::IsView<std::remove_cv_t<Container>>::value;

Return Value

An AnySpan over the dereferenced elements of c.

Parameters

Name

Description

c

The container of pointers whose pointees the span refers to.

Created with MrDocs