Cpp Coding Standards/STL/EraseMem

From Apache OpenOffice Wiki
< Cpp Coding Standards‎ | STL
Revision as of 00:03, 5 March 2007 by Thorsten (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

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

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