Returns a span containing the first len elements.

Synopsis

Declared in <absl/types/any_span.h>

constexpr
AnySpan
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