CHAPTER 7

image

More Algorithms

This chapter describes more of the algorithms the STL offers. Algorithms are commonly divided into two groups: mutating algorithms that change the range to which they are applied, and non-mutating algorithms. I’ll discuss the algorithms in this chapter subdivided into groups by what you can do with them, not by whether or not they change things. If you know what an algorithm does, it will be obvious whether or not it changes the data to which it’s applied. In this chapter you will learn about:

  • Algorithms that test the properties of the elements in a range
  • Algorithms that count the number of elements in a range with a ...

Get Using the C++ Standard Template Libraries 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.