Cpp Coding Standards/STL/EraseMem

From Apache OpenOffice Wiki
Jump to: navigation, search

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

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