Self-Review Exercises

  1. 16.1 State whether each of the following is true or false. If false, explain why.

    1. Standard Library algorithms can operate on C-like pointer-based arrays.

    2. Standard Library algorithms are encapsulated as member functions within each container class.

    3. When using the remove algorithm on a container, the algorithm does not decrease the size of the container from which elements are being removed.

    4. One disadvantage of using Standard Library algorithms is that they depend on the implementation details of the containers on which they operate.

    5. The remove_if algorithm does not modify the number of elements in the container, but it does move to the beginning of the container all elements that are not removed.

    6. The find_if_not algorithm ...

Get C++ How to Program, 10/e now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.