Returns a subspan starting at pos and spanning len elements.
Declared in <absl/types/span.h>
constexpr
Span
subspan(
size_type pos = 0,
size_type len = npos) const;
pos must be <= size(). Any len past the end is trimmed to size() - pos. The default len of npos runs to the end of the span.
A span over the requested range.
| Name | Description |
|---|---|
| pos | Index of the first element of the subspan. |
| len | Number of elements in the subspan, or npos for the rest. |