Returns a span containing the first len elements.

Synopsis

Declared in <absl/types/span.h>

constexpr
Span
first(size_type len) const;

Description

len must be <= size().

Return Value

A span over the first len elements.

Parameters

Name

Description

len

Number of elements from the front to include.

Created with MrDocs