13. Easy Programming with STL
One of the best things about C++ is the availability of the Standard Template Library (STL), which now comes with most compilers.
A template is a generalized data type you can use to create sophisticated containers. For example, the list template enables you to build linked lists of integers, floating-point numbers, or even your own kind of objects.
Don’t worry if this sounds new or exotic. The STL is an amazing resource that solves many common programming problems. The general philosophy—as with functions, classes, and objects—is: once a programming problem is solved, why should anyone have to solve it again?
These days, the great majority of C++ compilers widely used now provide full support for STL. If your compiler ...