Standard C++ Library Class Reference
Click on the banner to return to the Class Reference home page.
©Copyright 1996 Rogue Wave Software
replace_if
Algorithm
Summary
Substitutes elements stored in a collection with new values.
Contents
Synopsis●
Description●
Complexity●
Example●
Warning●
See Also●
Synopsis
#include <algorithm>
template <class ForwardIterator,
class Predicate,
class T>
void replace_if (ForwardIterator first,
ForwardIterator last,
Predicate pred
const T& new_value);