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 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.