MakeConstDerefAnySpan overloads
Synopses
Declared in <absl/types/any_span.h>
Constructs a const AnySpan dereferencing a view container of pointers.
template<
int& ExplicitArgumentBarrier...,
typename Container,
typename T = any_span_internal::DerefElementType<Container const>>
AnySpan<T const>
MakeConstDerefAnySpan(Container const& c)
requires absl::type_traits_internal::IsView<Container>::value;
Constructs a const AnySpan dereferencing a non‐view container of pointers.
template<
int& ExplicitArgumentBarrier...,
typename Container,
typename T = any_span_internal::DerefElementType<Container const>>
AnySpan<T const>
MakeConstDerefAnySpan(Container const& c)
requires !absl::type_traits_internal::IsView<Container>::value;
Return Value
A read‐only AnySpan over the dereferenced elements of c.
Parameters
Name |
Description |
c |
The container of pointers whose pointees the span refers to. |
Created with MrDocs