Constructs a const AnySpan from a pointer and a size.
Synopsis
Declared in <absl/types/any_span.h>
template<
int& ExplicitArgumentBarrier...,
typename T>
AnySpan<T const>
MakeConstAnySpan(
T const* ptr,
std::size_t size);
Return Value
A read‐only AnySpan over size elements starting at ptr.
Parameters
Name |
Description |
ptr |
Pointer to the first element. |
size |
Number of elements. |
Created with MrDocs