Original Post
Ok, check out this code:
#include <stl/list>
list< int* >TheList;
int *TheInt;
for ( int i = 0; i < 3; i++ )
{
TheInt = new int;
TheList.push_back( TheInt );
}
TheList.clear();
(Untested code)
ok, when I call TheList.clear(), do the int pointers get deleted? I mean do the memory allocated using the "new" command get de-allocated or is that up to me?
Denny