- Hardcover: 1128 pages
- Publisher: Addison-Wesley Professional; 2 edition (April 9, 2012)
- Language: English
- ISBN-10: 0321623215
- ISBN-13: 978-0321623218
- Product Dimensions: 7.7 x 1.7 x 9.2 inches
- Shipping Weight: 3.7 pounds (View shipping rates and policies)
- Average Customer Review: 4.5 out of 5 stars See all reviews (193 customer reviews)
Amazon Best Sellers Rank:
#288,460 in Books (See Top 100 in Books)
- #54 in Books > Computers & Technology > Programming > Languages & Tools > C & C++ > Tutorials
- #145 in Books > Computers & Technology > Programming > Languages & Tools > C & C++ > C++
- #362 in Books > Computers & Technology > Programming > Software Design, Testing & Engineering > Object-Oriented Design
Enter your mobile number or email address below and we'll send you a link to download the free Kindle App. Then you can start reading Kindle books on your smartphone, tablet, or computer - no Kindle device required.
To get the free app, enter your mobile phone number.
The C++ Standard Library: A Tutorial and Reference (2nd Edition) 2nd Edition
Use the Amazon App to scan ISBNs and compare prices.
Prepare for your professional certification with study guides and exam prep tools from Wiley. See more
Frequently bought together
Customers who bought this item also bought
About the Author
Nicolai M. Josuttis is an independent technical consultant who designs mid-sized and large software systems for the telecommunication, traffic, finance, and manufacturing industries. A former member of the C++ Standard Committee library working group, he is well known in the programming community for his authoritative books. In addition to The C++ Standard Library, a worldwide best-seller since its first publication in 1999, his books include C++ Templates: The Complete Guide (with David Vandevoorde, Addison-Wesley, 2003) and SOA in Practice: The Art of Distributed System Design (O’Reilly Media, 2007).
Browse award-winning titles. See more
If you are a seller for this product, would you like to suggest updates through seller support?
Top Customer Reviews
The issue with the code is that the font used was not consistently mono-spaced and there were plethora of syntactically incorrect line-breaks. I had to lower my font size to the lowest possible setting and orient the layout horizontally to make the code less chore-some. The code images themselves were so small (although properly formatted A-style code) that I had to strain my eyes. There was no happy medium here: either deal with impractical formatting or ruin your eyesight on the code images. The tables and inline graphics were abysmally small graphics, much like the code pictures.
If I had to purchase this book again I would definitely have shelled out the extra money for the print version. I am satisfied with the content but not the formatting of the e-book version, and will be looking forward to an update to the e-book version.
The web site also contains a pdf file for three additional chapters that were not included in the book. There are three chapters: Bitsets, Valarrays, & Allocators and Memory Functions in Detail .
I read the first edition from beginning to end and was well informed. I have not done that with the second edition but I have used it as a reference on a Kindle through click indexes, table of contents and searching. It works okay on Kindle classic and Kindle App (search needs some improvement). As a reference, it succeeds well.
I do have some problems with the book. I did like the examples provided and I liked the 3 level structure of the book. I just think that in the next edition for C++14 or whatever comes next they can actually improve the 1st level so it reads as well as Bjarne Stroustrups latest book on C++ by way of an excellent tour of the STL. With my detraction, I am still giving the book 5 stars because it is comprehensive, well written and it is usable with the hyperlink technology on the Kindle.
Nevertheless, Addison-Wesley needs to issue a new, corrected printing. The list of errata is extensive (see the book's website), and some of the errors make the book's text confusing, misleading, or outright incorrect. I received a printing after the first, and the errors remain. Seems that AW was pushing for a release before the text was quite ready. This costs the book a star.
Overall, it is a good book, very informative. The only problem I have with Kindle edition is that it has too many cross-referenced links. On many occasions I accidentally clicked such links when I simply tried to turn a page.
Regarding the subject of the book - STL. At some point I started taking notes from the book (direct quotes):
- A very useful thing that you can do with string iterators is to make all characters of a string lowercase or uppercase via a single statement.
- Note that restoring the original exception flags may cause exceptions: exceptions() throws an exception if a corresponding flag is set in the stream already.
- It is also possible to work with streams not throwing an exception. In this case, an exception is thrown if an error is detected.
- Violating this rule can lead to all kinds of strange effects <- you will find a lot of these throughout the book.
- In addition, file streams now have move and swap semantics providing a move constructor, a move assignment operator, and swap(). So you can pass a file stream as argument or return a file stream from a function. For example, if a file should be used longer than the scope in which it was created, you can return it as follows since C + + 11.
- To implement a stream buffer that buffers, the write buffer has to be initialized using the function setp().
- Since C + + 98, the C + + standard library has provided the class valarray for the processing of arrays of numeric values. ...
The valarray classes were not designed very well. In fact, nobody tried to determine whether the final specification worked. ... As a consequence, valarrays are rarely used.
While technically there is nothing wrong with the above quotes, I suggest C++ programmers to step back a bit and realize how bad they reflect on the state of the language in 2013. Keep in mind that the book has more that 1100 pages. This is not due to large number of features in the library, but because these features have so many caveats and hidden side effects.