list class free memory problem

Gabriel Dos Reis gdr@integrable-solutions.net
Mon Sep 22 10:15:00 GMT 2003


this is not the right list to discuss programming with C++.  This list
is about GCC development.  You might to consult C++ dedicated
newgroups, e.g. news:comp.lang.c++.moderated


ka yin kathy lo <kathylo@hutchcity.com> writes:

| Would you mind to tell me how to do this?

        list<T>().swap(l);      // standard idiom

-- Gaby



More information about the Libstdc++ mailing list