STL Lectures on Channel 9

September 18, 2010

Stephan T. Lavavej (a.k.a. STL) from Microsoft Visual C++ Team shared his STL knwoledge in a series of very interesting lectures on Channel 9. Part 1 is about sequence containers (like std::vector). Part 2 is on associative containers (like std::map). Part 3 is on smart pointers (e.g. shared_ptr). These concepts are then showed in practice in part […]


Lookup in std::map

September 18, 2010

The STL is a very powerful and highly-customizable C++ library (for example, you can provide custom allocators for its containers), but my impression is that sometimes the public interfaces of some classes lack some useful and convenient methods. One example is std::map: both ATL’s CAtlMapĀ and .NET BCL’s Dictionary classes offer a convenient lookup method (CAtlMap::Lookup […]