Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

void tmVector::RemoveAt ( PRUint32  aIndex  ) 

This does not collapse the collection, it leaves holes. Note, it also doesn't delete the element, it merely removes it from the collection

Definition at line 101 of file tmVector.cpp.

Referenced by tmQueue::DetachClient().

  PR_ASSERT(aIndex < mNext);

  // remove the element if it isn't already nsnull
  if (mElements[aIndex] != nsnull) {
    mElements[aIndex] = nsnull;
    if (aIndex == mNext-1) {   // if we removed the last element
      // don't test for success of the shrink

Generated by  Doxygen 1.6.0   Back to index