This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]