Tom
Tom

Reputation: 235

C++ STL containers, 'under the bonnet'?

what would be the best way to learn what actually happens with the STL containers? I presume just programming wouldnt be enough. Are there any books specifically aimed at this?

Upvotes: 3

Views: 584

Answers (6)

GuruM
GuruM

Reputation: 885

Found the below resources quite useful:
May not be up-to-date but SGI Stl Programmer's Guide. It has a good conceptual overview of the STL library.
Source code navigation:
I've used the Free Evaluation Source Insight Code Browser which allows to jump all around the source code from sgi's stl code.
Alternatively you can try out LXR, doxygen, Ctags.

Videos:
STL Tutorial by Stephen Lavavej
Going Deep into STL with Stephen Lavavej
Inside STL with Stepan Lavavej
C++0x Features in VC10

See Also:
C++ Templates - The Complete Guide by Nicolai Josuttis
C++ Template Meta-Programming - Concepts, Tools and Techniques Inside the C++ Object Model by Stanley Lippman

Upvotes: 0

fredoverflow
fredoverflow

Reputation: 263078

Stephan T. Lavavej is currently doing video lectures about the STL.

Upvotes: 2

bramp
bramp

Reputation: 9741

The best way to figure out what's happening 'under the bonnet' is to actually look under the hood and find the source code :)

Otherwise just read the documentation. I recommend this site, or this book.

Upvotes: 2

Shamim Hafiz - MSFT
Shamim Hafiz - MSFT

Reputation: 22064

There are books dedicated for C++ STL. You could try one of those.

Upvotes: 0

Cedric H.
Cedric H.

Reputation: 8288

This book is quite good, even if maybe it does not go deep enough in the details as you would like: The C++ Standard Library: A Tutorial and Reference

Upvotes: 7

Related Questions