vtf-logo

Algorithm: Skip elements in a sequence.


Functions

template<typename ForwardIterator1, typename ForwardIterator2>
ForwardIterator1 ads::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 ads::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.

Function Documentation

template<typename ForwardIterator1, typename ForwardIterator2>
ForwardIterator1 ads::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.

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 ads::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.

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 Fri Aug 24 12:55:37 2007 for Algorithms and Data Structures Package by  doxygen 1.4.7