Cpp Coding Standards/STL/EraseMem
From Apache OpenOffice Wiki
< Cpp Coding Standards | STL
Revision as of 18:54, 22 May 2007 by Np (talk | contribs) (Cpp Coding Standards/The Cpp Standard Template Library/EraseMem moved to Cpp Coding Standards/STL/EraseMem: consistency)
Use this idiom to actually release all memory claimed by an STL container:
container<T>().swap(myContainer);