rotate and rotate_copy

replace, replace_if, replace_copy, and replace_copy_if

template <class ForIter, class T>    void replace(ForIter start, ForIter end,                  const T &old, Const T &new); template <class ForIter, class UnPred, class T>     void replace_if(ForIter start, ForIter end,                     UnPred pfn, Const T &new); template <class InIter, class OutIter, class T>     OutIter replace_copy(InIter start, InIter end, OutIter result,                          const T &old, Const T &new); template <class InIter, class OutIter, class UnPred, class T>     OutIter replace_copy_if(InIter start, InIter end, OutIter result,                             UnPred pfn, Const T &new);

Within the specified range, the replace( ) algorithm replaces elements with the value old with elements that have the value new.

Within the specified range, the replace_if( ) algorithm replaces those elements for which the predicate pfn is true with elements that have the value new.

Within the specified range, the replace_copy( ) algorithm copies elements to result. In the process, it replaces elements that have the value old with elements that have the value new. The original range is unchanged. An iterator to the end of result is returned.

Within the specified range, the replace_copy_if( ) algorithm copies elements to result. In the process, it replaces elements for which the predicate pfn returns true with elements that have the value new. The original range is unchanged. An iterator to the end of result is returned.




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