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
removealgorithm 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_ifalgorithm 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_notalgorithm ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access