reverse and reverse_copy

remove, remove_if, remove_copy, and remove_copy_if

template <class ForIter, class T>    ForIter remove(ForIter start, ForIter end, const T &val); template <class ForIter, class UnPred>     ForIter remove_if(ForIter start, ForIter end,  UnPred pfn); template <class InIter, class OutIter, class T>     OutIter remove_copy(InIter start, InIter end,                         OutIter result, const T &val); template <class InIter, class OutIter, class UnPred>     OutIter remove_copy_if(InIter start, InIter end,                             OutIter result, UnPred pfn); 

The remove( ) algorithm removes elements from the specified range that are equal to val. It returns an iterator to the end of the remaining elements.

The remove_if( ) algorithm removes elements from the specified range for which the predicate pfn is true. It returns an iterator to the end of the remaining elements.

The remove_copy( ) algorithm copies elements from the specified range that are equal to val and puts the result into the sequence pointed to by result. It returns an iterator to the end of the result.

The remove_copy_if( ) algorithm copies elements from the specified range for which the predicate pfn is true and puts the result into the sequence pointed to by result. It returns an iterator to the end of the result.




C(s)C++ Programmer's Reference
C Programming on the IBM PC (C Programmers Reference Guide Series)
ISBN: 0673462897
EAN: 2147483647
Year: 2002
Pages: 539

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net