Lecture Notes for CS 509

16 October 2003 - Introduction to Generic Algorithms


Generic Algorithms


Generic Algorithms


Containers vs. Data Sequences


Why Use Generic Algorithms?


Generic Algorithms and Iterator Categories


Generic Algorithm Categories


Non-Mutating Algorithms


Generalized Numeric Algorithms


Mutating Algorithms


The Mutating Algorithm Trap


Order-Related Algorithms


Order-Related Algorithm Traps


Naming Conventions


When to Use Generic Algorithms


Generic Algorithms and Member Functions