• replace_copy() is a combination of copy() and replace(). It replaces each element in the source range [sourceBeg,sourceEnd) that is equal to oldValue with newValue while the elements are copied into the destination range starting with destBeg. • replace_copy_if() isacombinationof copy() and replace_if(). Itreplaceseachelement in the source range [sourceBeg,sourceEnd) for which the unary predicate op(elem) yields true with newValue while the elements are copied into the destination range starting with destBeg. • Bothalgorithmsreturnthepositionafterthelast copiedelementin thedestinationrange(thefirst element that is not overwritten). • Note that op should not change its state during a function call. See Section 10.1.4, page 483, for details. • The caller must ensure that the destination range is big enough or that insert iterators are used. • Complexity: linear (numElems comparisons or calls of op() and assignments, respectively). The following program demonstrates how to use replace_copy() and replace_copy_if