replace_if
Syntax:
#include <algorithm> void replace_if( iterator start, iterator end, Predicate p, const TYPE& new_value );
The replace_if() function assigns every element in the range [start,end) for which the predicate function p returns true the value of new_value.
This function runs in linear time.
Related Topics: replace