S
Sammy
Its slow but Im in the process of converting some of my admittedly ugly
code into STL. At the moment Im working to change a mess that I like to
call a linked list when Im in a generous mood. Actually it works, but could
be much better.
When using the STL list (made up of simple pointers), I assume using the
erase function does not automatically destroy the objects they point to...
just the pointer itself. Is this so?
If it is... will using the erase function call up the destructor of
whatever is being erased? Say if the list was made up of smart pointers
that will handle deletions on their own?
Thanks.
code into STL. At the moment Im working to change a mess that I like to
call a linked list when Im in a generous mood. Actually it works, but could
be much better.
When using the STL list (made up of simple pointers), I assume using the
erase function does not automatically destroy the objects they point to...
just the pointer itself. Is this so?
If it is... will using the erase function call up the destructor of
whatever is being erased? Say if the list was made up of smart pointers
that will handle deletions on their own?
Thanks.