10Generic Programming and the Standard Template Library

In Chapter 9, we introduced several basic collections and related algorithms. There are many other types of commonly used collections and complex algorithms. The study of these issues is the subject of data structure. It is not necessary for programmers to develop every class and algorithm from scratch. In fact, the standardization and modulization of commonly used algorithms are the keys to fast software production. To achieve this, we need to use not only concepts from object-oriented programs but also those from generic programming. The Standard Template Library (STL) in C++ is a good example of integrating these two concepts.

In this chapter we introduce the concepts, the structures, ...

Get C++ Programming 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.