STL::list::clear , erase help

Vijay Patil vpatil@knightsindia.co.in
Fri Nov 29 13:49:00 GMT 2002


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



More information about the Libstdc++ mailing list