Destruction and things in stl containers...
Do these strings get released no destruction of the vector?
std::vector Strings;
When the vector is destroyed do the strings get their destructors called? Is it only pointers in containers that I need to care about?
Thanks
Chris Brodie
http:\\fourth.flipcode.com
I''m pretty sure you only need to worry about pointers, the containers should make certain that only constructed objects have thier dtor''s invoked on them.
Anything in an STL container will get its destructor called. It''s just that pointers have a destructor that does nothing.
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]
[ MSVC Fixes | STL | SDL | Game AI | Sockets | C++ Faq Lite | Boost ]
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement