Gem #9: Classwide operations, iterators, and generic algorithms

@inproceedings{Heaney2008GemC,
  title={Gem #9: Classwide operations, iterators, and generic algorithms},
  author={Matthew Heaney},
  booktitle={ALET},
  year={2008}
}
Ada Gem #9 - A generic algorithm manipulates container elements in a way that is completely general, working with any container (including arrays) that provides a way to iterate over its elements. In this example we systematically alter an operation for copying containers within a common class, converting it to a generic algorithm that ultimately works for any kind of container.