19.3 STANDARD TEMPLATE LIBRARY (STL)

Natural extension of Object Orientation and Templates is Standard Template Library. All programming environments provide their users with a standard template library. It contains implementations of many useful classes and functions that are based on templates.

The idea is that a programmer can use these classes and functions directly in his/her programs. It increases his/her productivity. It is possible for any programmer to write any code. But testing and debugging takes a lot of time. Hence, code that is previously tested is a good tool in the hands of an experienced programmer.

The STL is based on three main components containers, iterators, and algorithms.

Get Object Oriented Programming with C++, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.