Self-Review Exercises
-
16.1 State whether each of the following is true or false. If false, explain why.
Standard Library algorithms can operate on C-like pointer-based arrays.
Standard Library algorithms are encapsulated as member functions within each container class.
When using the
remove
algorithm on a container, the algorithm does not decrease the size of the container from which elements are being removed.One disadvantage of using Standard Library algorithms is that they depend on the implementation details of the containers on which they operate.
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.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.