Windows 7 C9 Lectures: Stephan T Lavavej - Advanced STL, 6 of n

News

Extraordinary Robot
News Feed
#1
There are two STLs: the Standard Template Library and Stephan T. Lavavej

Advanced STL covers the gory details of the STL's implementation -> you will therefore need to be versed in the basics of STL, competent in C++ (of course), and be able to pay attention! Stephan is a great teacher and we are so happy to have him on Channel 9—the only place you'll find this level of technical detail regarding the internals of the STL. There are no books. There are no websites. This is Stephan taking us into what is uncharted territory for most, even those with a more advanced STL skill set.
This is a very special episode—it was driven by you!
In Part 5, Niner KerrekSB commented that a great topic for this advanced series would be developing a generic mechanism for printing out STL containers (like a vector of ints). Then Sven Groot helped out with his usual brilliance. I love this Niner interaction!
You got STL to lecture on this stuff! That is HUGE

In fact, STL was so impressed that he decided to try it out himself and see how generic he could make it. He uses only those STL features available in VC10 SP1 (for example, variadic templates are not used in his solution because the feature is not implemented in VC 2010 SP1...).
What did Stephan come up with? Get STL's PrettyPrinter implementation, then watch this great episode to learn the details behind the code. Thanks STL, KerrekSB, and Sven Groot for an excellent exercise!

See Part 1 -> shared_ptr and friends

See Part 2 -> Algorithm optimization
See Part 3 -> STL's comprehensive correctness checks
See Part 4 -> rvalue references, perfect forwarding, associative containers
See Part 5 -> Boost Library

Watch STL's great introductory series on the STL


More...
 


This website is not affiliated, owned, or endorsed by Microsoft Corporation. It is a member of the Microsoft Partner Program.