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