[#absl-MakeConstAnySpan-08] = xref:absl.adoc[absl]::MakeConstAnySpan :relfileprefix: ../ :mrdocs: Constructs a const `AnySpan` from a pointer and a size. == Synopsis Declared in `<absl/types/any_span.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< int& ExplicitArgumentBarrier..., typename T> xref:absl/AnySpan.adoc[AnySpan<T const>] MakeConstAnySpan( T const* ptr, std::size_t size); ---- == Return Value A read‐only `AnySpan` over `size` elements starting at `ptr`. == Parameters [cols="1,4"] |=== | Name| Description | *ptr* | Pointer to the first element. | *size* | Number of elements. |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#