[#absl-MakeSpan-0e4] = xref:absl.adoc[absl]::MakeSpan :relfileprefix: ../ :mrdocs: Constructs a mutable `Span<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>] MakeSpan( T* ptr, size_t size) noexcept; ---- == Return Value A 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]#