Not quite the answer to your question, but if you do not know STL / templates, you can find code based on STL, sometimes, er ..., raw.
For example, if the following code ...
std::for_each( s.begin(), s.end(), std::bind1st( std::mem_fun( &MyClass::MyMethod ), this ) );
... gives you creeps (it was for me), then you feel bad looking through some intense STL code.
If you want to learn STL, then try and each class / function STL, by definition, will also be a good idea. For example, take http://www.cplusplus.com/reference/stl/ and play both with containers and auxiliary functions separately .
It will be more complex in the header <algorithm> and <functional>, but this is my personal point of view.
source share