Revised 12/14/1999
The Standard Template Library (STL) is a general-purpose C++ library of algorithms and data structures, originated by Alexander Stepanov and Meng Lee. The STL, based on a concept known as generic programming, is part of the standard ANSI/ISO C++ library. The STL is implemented by means of the C++ template mechanism, hence its name. While some aspects of the library are very complex, it can often be applied in a very straightforward way, facilitating reuse of the sophisticated data structures and algorithms it contains.
Although not part of the STL, the string class is also part of the ANSI/ISO C++ standard library. Like the STL, it provides a commonly needed facility (character string handling).
A complete introduction to the STL can be found by consulting the references below. For starters, though, a small number of classes and algorithms can be very useful:
If you wish to use STL containers to hold objects of user-defined (class) types, as opposed to built-in types (e.g., int), please refer to the requirements for these objects.
For more information on the STL, try the following links:
For more information on the Milwaukee School of Engineering, try these links:
This page was last updated on November 10, 2002; send comments to Mark Sebern.