You're viewing an older version of this page (#4229). View the current version.

View versions (1)

Overview

An algorithm is a set of rules that actually defined what to do to the data structure. Algorithms are global functions that operate with iterators; hence, all algorithms can be implemented once for any container type.

The STL library provides a complete set of algorithms that can be used to avoid painful reimplementations.