Difference between revisions of "Cpp Coding Standards/STL/EraseMem"

From Apache OpenOffice Wiki
Jump to: navigation, search
 
(No difference)

Revision as of 18:54, 22 May 2007

Use this idiom to actually release all memory claimed by an STL container:

container<T>().swap(myContainer);
Personal tools