absl::AnySpan::first

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

NameDescription
lenNumber of elements from the front to include.