Constructs a Span<const T> from a [begin, end)] pointer pair.

Synopsis

Declared in <absl/types/span.h>

template<
    int& ExplicitArgumentBarrier...,
    typename T>
Span<T const>
MakeConstSpan(
    T* begin,
    T* end) noexcept;

Return Value

A read‐only span over the range [begin, end)].

Parameters

Name

Description

begin

Pointer to the first element.

end

Pointer just past the last element.

Created with MrDocs