Constructs a Span<const T> from a pointer and a size.
Declared in <absl/types/span.h>
template<
int& ExplicitArgumentBarrier...,
typename T>
constexpr
Span<T const>
MakeConstSpan(
T* ptr,
size_t size) noexcept;
A read-only span over size elements starting at ptr.
| Name | Description |
|---|---|
| ptr | Pointer to the first element. |
| size | Number of elements. |