Your Library
Chapter 13 · AlgorithmsGeneric operations over sequences and ranges
Contents
Chapter 12Sections 13.1–13.7

Algorithms

Generic operations over sequences and ranges

Standard-library algorithms operate on sequences through iterators rather than acting directly on containers. This separation lets the same operations work with vectors, lists, strings, arrays, and streams. Learn the half-open range convention, choose appropriate iterator and output mechanisms, and prefer established algorithms over hand-written loops.

In this chapter

  1. 12.1Lesson 13: Algorithms