A
alon
I got the following situation: I have a few lists of integers, and I
have an iterator pointing to one of the elements. I don't have a
pointer to the list itself ! All I want is to remove the element the
iterator points to...
Basically, a list element has pointers back and forth, so I shouldn't
need the list itself, but I don't see any function that does the work.
Is there a real problem to do this? Is it just a coincidence that no
body implemented such a function?
have an iterator pointing to one of the elements. I don't have a
pointer to the list itself ! All I want is to remove the element the
iterator points to...
Basically, a list element has pointers back and forth, so I shouldn't
need the list itself, but I don't see any function that does the work.
Is there a real problem to do this? Is it just a coincidence that no
body implemented such a function?