Based only on the algorithm and argument names, describe the operation that the each of the following library algorithms performs
belongs to book: C++ Primer|Stanley B.Lippman, Josee Lajoie, Barbara E.Moo|5th Edition| Chapter number:10| Question number:41
All Answers
total answers (1)
Replace elements whose value is equal to
`old_val`
with`new_val`
in iterator range`[beg, end)`
.Replace elements whose return value is nonzero when calling predicate
`pred(val)`
with`new_val`
in iterator range`[beg, end)`
.Copy elements in iterator range
`[beg, end)`
to iterator`dest`
, and replace elements whose values are equal to`old_val`
with`new_val`
.Copy elements in iterator range
need an explanation for this answer? contact us directly to get an explanation for this answer`[beg, end)`
to iterator`dest`
, and replace elements whose return value is nonzero when calling predicate`pred(val)`
with`new_val`
.