O'Reilly logo

C++ for the Impatient by Brian Overland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 18. STL Algorithms

Much of computer programming comes down to standard tasks such as sorting, searching, counting, and selecting items from a collection. The STL algorithms are function templates that perform these general functions on nearly any kind of data and most any kind of collection: standard C++ arrays as well as any of the collection classes.

After presenting some general concepts, this chapter summarizes the STL algorithm templates by category—there are quite a number of them! Then it describes all of the templates in detail, in alphabetical order.

18.1. STL Algorithms: General Concepts

Most of the STL algorithm templates require the <algorithm> header. A few of them, called “numeric” algorithms, require the use of the <numeric> ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required