Logo Search packages:      
Sourcecode: scummvm version File versions

void Common::List< T >::remove ( const T &  val ) [inline, inherited]

Removes all elements that are equal to val from the list.

Definition at line 116 of file list.h.

                                  {
            NodeBase *i = _anchor._next;
            while (i != &_anchor)
                  if (val == static_cast<Node *>(i)->_data)
                        i = erase(i)._next;
                  else
                        i = i->_next;
      }

Generated by  Doxygen 1.6.0   Back to index