Constructs a span from a pointer and a length.

Synopsis

Declared in <absl/types/span.h>

constexpr
Span(
    pointer array,
    size_type length) noexcept;

Parameters

Name

Description

array

Pointer to the first element.

length

Number of elements in the span.

Created with MrDocs