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
range | the input range to drop from |
n | the number of elements to drop |
Returns
range with n elements dropped