Algorithm: Skip elements in a sequence.

Functions

template<typename ForwardIterator1 , typename ForwardIterator2 >
ForwardIterator1 skipElementsUsingIteration (ForwardIterator1 iterator, ForwardIterator2 beginning, ForwardIterator2 end)
 Advance the iterator while it's value is equal to any of the elements in the range. Return the advanced iterator.
template<typename ForwardIterator , typename IteratorForwardIterator >
ForwardIterator skipIteratorsUsingIteration (ForwardIterator iterator, IteratorForwardIterator beginning, IteratorForwardIterator end)
 Advance the iterator while it is equal to any of the elements in the range. Return the advanced iterator.

Detailed Description


Function Documentation

template<typename ForwardIterator1 , typename ForwardIterator2 >
ForwardIterator1 skipElementsUsingIteration ( ForwardIterator1  iterator,
ForwardIterator2  beginning,
ForwardIterator2  end 
) [inline]

Advance the iterator while it's value is equal to any of the elements in the range. Return the advanced iterator.

This function uses iteration to skip the elements. This is only efficient if the the size of the sequence [beginning .. end) is small.

template<typename ForwardIterator , typename IteratorForwardIterator >
ForwardIterator skipIteratorsUsingIteration ( ForwardIterator  iterator,
IteratorForwardIterator  beginning,
IteratorForwardIterator  end 
) [inline]

Advance the iterator while it is equal to any of the elements in the range. Return the advanced iterator.

This function uses iteration to skip the elements. This is only efficient if the the size of the sequence [beginning .. end) is small.

Generated on Thu Jun 30 02:14:51 2016 for Algorithms and Data Structures Package by  doxygen 1.6.3