Replace Elements and Ranges
Let's look at the functions we can use to update and replace values in ranges.
You have with std::replace
, std::replace_if
, std::replace_copy
and std::replace_copy_if
four variations to replace elements in a range. The algorithms differ in ...