Translations of this page?:

replace_if

Syntax:

    #include <algorithm>
    void replace_if( forward_iterator start, forward_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

 
• • • IndexRecent changesRSScc