This is part 3 of a fast paced C++ tutorial for programmers familiar with high level languages like Perl and Python. In this part, we’ll learn that STL containers store copies of objects. To get Python-like semantics, we’ll store std::tr1::shared_ptr pointers to dynamically allocated objects instead of raw pointers into the std::map.
Archive of entries posted on November 2009