Return a window into the current range, starting at first, and spanning length characters (or until the end of the current range, whichever comes first).
Declared in <folly/Range.h>
Range
subpiece(
size_type first,
size_type length = npos) const;
Throws std::out_of_range if first is past the end of the current range.
The resulting subrange.
| Name | Description |
|---|---|
| first | The offset of the first element of the subrange. |
| length | The maximum number of elements in the subrange. |