O'Reilly logo

Sams Teach Yourself C++ in One Hour a Day, Eighth Edition by Siddhartha Rao

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

Lesson 23. STL Algorithms

An important part of the Standard Template Library (STL) is a set of generic functions, supplied by the header <algorithm>, that help manipulate or work with the contents of a container. In this lesson, you learn the usage of algorithms that reduce boilerplate code in helping you:

Image Count, search, find, copy, and remove elements from a container

Image Set values in a range of elements to the return value of a generator function or a predefined constant

Sort or partition elements in a range

Insert elements at the correct position ...

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