replace_copy_if « STL Algorithms Modifying sequence operations « C++ Tutorial






24.15.replace_copy_if
24.15.1.std::replace_copy_if with predicate
24.15.2.Use replace_copy_if to print all elements with a value less than 5 replaced with 42
24.15.3.Use replace_copy_if to print each element while each odd element is replaced with 0
24.15.4.Copy one vector to another vector, replacing elements greater than 9 with 100