Lecture Notes for CS 509

24 February 2004 - Introduction to Generic Algorithms


Because mutating algorithms can't change the container size, what does remove() do? It should more properly be called overwrite() (or perhaps squish()). As it scans from left to right in the sequence, remove() overwrites values it should remove by shifting down values to the right.


This page last modified on 2 March 2004.