Chapter 33. Examining Algorithms

<feature>
  • Understand the concept of generic algorithms

  • See the difference between in-place and copy algorithms

  • Learn about the modifying and nonmodifying sequence algorithms

  • Discover the sorted sequence algorithms

  • Explore the heap operation, comparison, and permutation algorithms

</feature>

Generic Algorithms

The Standard C++ Library provides a wide assortment of generic algorithms designed to be efficient and yet work with a wide variety of data types. These generic algorithms use iterators to perform their magic. In this chapter, you’ll see how these algorithms can cut your programming time by providing plug-in solutions. These algorithms can be divided into the following seven general categories, based on their semantics ...

Get Practical C++ 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.