Logo Search packages:      
Sourcecode: scummvm version File versions

iterator Common::List< T >::erase ( iterator  first,
iterator  last 
) [inline, inherited]

Deletes the elements between first and last (including first but not last) and returns an iterator pointing to the element after the one which was deleted (i.e., last).

Definition at line 105 of file list.h.

            NodeBase *f = first._node;
            NodeBase *l = last._node;
            while (f != l)
                  f = erase(f)._next;
            return last;

Generated by  Doxygen 1.6.0   Back to index