This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
STL::list::clear , erase help
- From: Vijay Patil <vpatil at knightsindia dot co dot in>
- To: "'libstdc++ at gcc dot gnu dot org'" <libstdc++ at gcc dot gnu dot org>
- Date: Fri, 29 Nov 2002 16:10:40 +0530
- Subject: STL::list::clear , erase help
Hello
i have a list pointers defined like shown below
list<CKMaskApp*> m_MaskAppList;
i have added some CKMaskApp pointers to m_MaskAppList list
if i say m_MaskAppList->clear(); , will it call the destructor of CKMaskApp
objects, i saw the MSDN documents it says that N destructors are called, but
destructors are never called, I'm working with MS VC with CL compiler on Win
NT
is it STL list bug or some think else?,
what is the standard behavior of list::clear or erase function
thanks
Vijay