cpp/algorithm/ranges/replace

Replaces all elements satisfying specific criteria with in the range.

@1@ Replaces all elements that are equal to, using to compare. @3@ Replaces all elements for which the predicate evaluates to, where evaluating expression is. @2,4@ Same as, but uses as the range, as if using  as  and  as.

Return value
An iterator equal to.

Complexity
Exactly applications of the corresponding predicate  and any projection.