dropExactly

fnR dropExactly(R)(R range, size_t n) if (isInputRange!R)

Similar to drop and dropBack but they call

range.popFrontExactly(n) and range.popBackExactly(n)

instead.

Note

Unlike drop, dropExactly will assume that the

range holds at least n elements. This makes dropExactly faster than drop, but it also means that if range does not contain at least n elements, it will attempt to call popFront on an empty range, which is undefined behavior. So, only use popFrontExactly when it is guaranteed that range holds at least n elements.

Parameters

rangethe input range to drop from
nthe number of elements to drop

Returns

range with n elements dropped

See Also