DEV Community

Sandor Dargo
Sandor Dargo

Posted on • Originally published at sandordargo.com

The C++ Standard Library: A Tutorial and Reference by Nicolai Josuttis

For each quarter, I define three goals for myself as described in Setting yourself up to success. In the previous quarters, I had personal goals related to the C++ Standard Library.

As I was already recommended to read it, I started to consume the monstre 1100 pages long book The C++ Standard Library: A Tutorial and Reference (2nd Edition) by Nicolai Josuttis.

I had the solid intention of reading from cover to cover, but I have to admit I failed this. It's a fascinating book, uncovering a lot of not-so-well-known features and characteristics of the Standard Library, but as the end of its title suggests it should be handled as a reference. You know more or less what is inside and if you need to check something, you can go an open it on the good page.

Speaking about its title, I felt it less a tutorial. From a tutorial I expect exercises building on the top of the previous one to make you think a bit, but not to make you feel stuck for a long time. This book doesn't include such exercises or any at all. I don't find it problematic, but better to understand it to avoid unfulfilled expectations.

On the other hand, even in the world cplusplus.com, cppreference.com, not to mention StackOverflow, I think this book has a place on the (virtual) bookshelves of intermediate/advanced C++ developers. It simply covers more and goes into topics deeper than the other mediums I mentioned.

It can also serve as a source of inspiration for developers who want to go to the next step in their careers or for bloggers like me who are looking for more advanced topics to learn and share about.

Probably this latter has been the most important use of this book for me. I found a lot of small parts of the STL, I want to master. Just to mention a couple of alike topics: piecewise construction or template constructors.

I can't recommend this book to read from cover to cover as I didn't do it, but I definitely suggest to skim it through and spend more time on the topics you find interesting, first to read the corresponding chapters and then to find ways to practice what you read.

This article has been originally posted on my blog. If you are interested in receiving my latest articles, please sign up to my newsletter and follow me on Twitter.

Top comments (2)

Collapse
 
syntopikyle profile image
Kyle Walsh

Thanks for doing this write-up! I had been considering going through this tome myself and wasn't sure where to rank it in my upcoming reads stack (which is naturally never-ending, lol). I'm overdue for an STL refresher (outside of the items I use via muscle memory for day to day stuff).

Collapse
 
sandordargo profile image
Sandor Dargo

Thank you for your comment! If you know what from the STL you're exactly looking for, you can simply open the book there and for that purpose it's great.