We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 48a313f commit 99c2e42Copy full SHA for 99c2e42
src/util/range.h
@@ -343,6 +343,7 @@ struct ranget final
343
344
/// Drop the first \p count elements.
345
/// If the range has fewer elements, drops everything.
346
+ /// Similar to \ref skip but modifies the range in-place.
347
void drop(std::size_t count)
348
{
349
std::size_t i = 0;
@@ -356,6 +357,7 @@ struct ranget final
356
357
/// Return an new range containing the same elements except for the first
358
/// \p count elements.
359
/// If the range has fewer elements, returns an empty range.
360
+ /// Similar to \ref drop but returns a new range object.
361
ranget<iteratort> skip(std::size_t count) const
362
363
ranget<iteratort> skip_range{begin(), end()};
0 commit comments