[#absl-MakeConstSpan-05] = xref:absl.adoc[absl]::MakeConstSpan :relfileprefix: ../ :mrdocs: Constructs a `Span<const T>` from a pointer and a size. == Synopsis Declared in `<absl/types/span.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- template< int& ExplicitArgumentBarrier..., typename T> constexpr xref:absl/Span.adoc[Span<T const>] MakeConstSpan( T* ptr, size_t size) noexcept; ---- == Return Value A read‐only span 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]#