Chapter 16. STL Sequence Containers (List)

For many years, computer programming students have been writing linked-list code, useful in accessing a collection sequentially. The advantage of a linked list is that you can insert and delete elements from the middle of the collection while not disturbing the rest of it in any way.

How would you like to have all these list operations automated for you... and more?

The Standard Template Library (STL) automates linked-list programming, providing all the standard capabilities of a container, plus several built-in, special capabilities unique to lists, including removal, merging, and splicing.

One of the most useful of these extra functions is sort. This chapter therefore begins by discussing the requirements ...

Get C++ for the Impatient now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.