Hmm. I do not generally use the STL alot, but I have a large code base that uses STL list. I was growing fond of it until....erase. Is there a way to erase an element from the list without having the list structure specifically. All I want is to be able to write:
Code:
std::list<int> foo;
foo.push_back(5);
foo.push_back(6);
std::list<int>::iterator bar;
bar = foo.begin();
bar++;
then
or
or some such. I have looked through the stl code and I can't find the function so its either not there or I am looking in the wrong place. Thanks for the help