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.
Algorithms
Generic operations over sequences and ranges