Constructs a Span<const T> from a non‐view container.
Synopsis
Declared in <absl/types/span.h>
template<
int& ExplicitArgumentBarrier...,
typename C>
constexpr
decltype(MakeSpan(c))
MakeConstSpan(C const& c) noexcept
requires !span_internal::IsView<C>::value;
Return Value
A read‐only span over the elements of c.
Parameters
Name |
Description |
c |
The container whose data the span refers to. |
Created with MrDocs