Defined in header <algorithm> template< class ForwardIt, class T >
void replace( ForwardIt first, ForwardIt last,
const T& old_value, const T& new_value ); (1) template< class ForwardIt, class UnaryPredicate, class T >
void replace_if( ForwardIt first, ForwardIt last,
UnaryPredicate p, const T& new_value ); (2)
Replaces all elements satisfying specific criteria with new_value in the range [first, last). The first