Jump to ratings and reviews
Rate this book

The C++ Standard Library: A Tutorial and Reference

Rate this book
Now Updated for C++11

The C++ standard library provides a set of common classes and interfaces that greatly extend the core C++ language. The library, however, is not self-explanatory. To make full use of its components–and to benefit from their power–you need a resource that does far more than list the classes and their functions.

The C++ Standard Library: A Tutorial and Reference, Second Edition, describes this library as now incorporated into the new ANSI/ISO C++ language standard (C++11). The book provides comprehensive documentation of each library component, including an introduction to its purpose and design; clearly written explanations of complex concepts; the practical programming details needed for effective use; traps and pitfalls; the exact signature and definition of the most important classes and functions; and numerous examples of working code. The book focuses in particular on the Standard Template Library (STL), examining containers, iterators, function objects, and STL algorithms.

The book covers all the new C++11 library components, including

Concurrency
Fractional arithmetic
Clocks and timers
Tuples
New STL containers
New STL algorithms
New smart pointers
New locale facets
Random numbers and distributions
Type traits and utilities
Regular expressions
The book also examines the new C++ programming style and its effect on the standard library, including lambdas, range-based for loops, move semantics, and variadic templates.

2701 pages, Kindle Edition

First published August 12, 1999

69 people are currently reading
631 people want to read

About the author

Ratings & Reviews

What do you think?
Rate this book

Friends & Following

Create a free account to discover what your friends think of this book!

Community Reviews

5 stars
277 (44%)
4 stars
224 (36%)
3 stars
96 (15%)
2 stars
17 (2%)
1 star
7 (1%)
Displaying 1 - 23 of 23 reviews
Profile Image for David.
Author 18 books399 followers
December 4, 2011
This is a must-have reference for C++ programmers. Although it's labeled a tutorial, it should not be considered an introductory text. It assumes you already know C++ pretty well. However, it is an introduction to the Standard Template Library (STL), which anyone doing a lot of C++ programming should become familiar with. This very large, comprehensive book lists every class and method in the STL in a very well organized fashion, and gives ample examples for using them.
Profile Image for Jovany Agathe.
281 reviews
March 26, 2018
I purchased this book to learn how C++ library-based programming is done in the real world, not in the classroom where we must reinvent the wheel for every project.

I was skeptical when I read the other reviews, but I am extremely impressed with this book. I have not had the chance to sit down and read the book cover to cover yet. However, I have cracked it open a few times when I've gotten stuck, and have been amazed that I have been able to quickly and effortlessly find clear, concise, and thorough answers to every STL question that I've had.

The book is extremely well written: it's well structured, well indexed, and easy to digest. Extremely cost effective.
2 reviews
November 17, 2021
"The book" for C++ standard library; works both as a tutorial and a reference. Examples and explanations are clear and concise. One of the best programming books I've ever read.
Profile Image for Damian Karasinski.
15 reviews
September 22, 2023
Nice book!

I read it a long time ago. My first book about C++, if I remember correctly. This one is in particular about the standard library in that language.

I just remembered about it recently when reading about something else. Nostalgia.

If you plan to learn about C++, better pick one of the newer books. This one is likely outdated at this point.
Profile Image for Maxim Chetruşca.
32 reviews20 followers
October 9, 2017
Thick as a usual C++ book, this one presents STL in a comprehensive way. As the title suggests, it shows how to use it and lists all the things in it.
Profile Image for Matt.
6 reviews
October 26, 2012
http://chchwy.blogspot.com/2011/08/c-...

Effective C++������������������������C++��������������������������� ������������������������������������������������������ C��� ������������C++���Template C++������������������ STL��������������������������������������������������������������������� C++���������������������������������������������������������������������������������������������������������C++������������������: Template C++������ STL ������������������������������������������������

STL ������������������������������������������������������������ cplusplus.com��������������������������������������� STL ���������������������������������������������������������������STL������������������������������������������������ STL������������������������������������������������������������������������ STL algorithm ��������������������������������������� STL algorithms ��������� function object ��������������������������� Iterator ������������������������������������������������������������

������������������������������������������������������������������������������ STL ������������������������������: Container ���������������������������Algorithm ��������������������� Iterator ��������������������������������������������������������������������������������������������������������������������������������������� STL ������������������������������������Q��������������� ~ ������������������������������������������Container���Iterator���Algorithm ���������������������������

��������� Function Object ��������������������������������������������������������� function object ������������������������������ (��������������������������������������������� object ������operator( ) ������������������������������ )������������������������STL Algorithm��������������������� function object ���������������function object���STL Algorithms ������������������������������������������������������������C++������������������������������������I/O���������������������������

������������������������������������������������������������������������������������������ STL ���������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������������STL������������������������������������������a Tutorial and Reference������������������������������������������������������������ reference ������������������������������������

������������������������������������������������������������������������������������������������������������������������������������������������������������������������������
Profile Image for Brendan.
4 reviews4 followers
June 15, 2012
Why is it Russians know so much about C++? It's one of those difficulty to explain but self evident truths about the world.

If you are a for real C++ programmer, you need this book. This book has tutorials how on to use most elements of the standard library, which is nice, but more importantly it explains how and why the different parts of the library fit together. Understanding the relationship between iterators, containers, and algorithms is crucial.

That said, this book really needs an update to cover all the stuff added into the library in C++11.
Profile Image for Flavio Perri.
12 reviews1 follower
July 26, 2013
Great resource for STL! Lot of examples, full explanation of every hidden detail about the C++ standard template library.
The reference parts of each chapter is little boring, but it's possible to skip them, without losing the important notions (but i recommend to read all parts of the book).
Ok with c++11 new features, explained very well with classes and real code. I'd like more info and examples on concurrency, so I will go looking for a detailed book about it.
Profile Image for Michael.
815 reviews93 followers
October 25, 2012
Very cleanly organized, covers all the basics and advanced topics, nice index. I like how the methods on each class are presented in tables throughout the chapters, but since they discuss groups of methods in different sections, not all the methods appear in one table, which is a con.
6 reviews
September 2, 2008
perfect guide for using the C++ standard template library
Profile Image for Claus.
Author 5 books27 followers
January 4, 2015
Indispensable for a C++ programmer.

I teach C++ programming, and I refer my students to this book continually.
Displaying 1 - 23 of 23 reviews

Can't find what you're looking for?

Get help and learn more about the design.