replace if « STL Algorithms Modifying sequence operations « C++






1.std::replace_if with predicate
2.Replace value equal to 70 with 42 in a deque
3.Truncate numbers to fall between 0 and 255 inclusive