Add OwnedArray::clearQuick()

This commit is contained in:
Vinnie Falco
2013-07-26 07:30:54 -07:00
parent a4b19019ee
commit 26484fe64b

View File

@@ -101,6 +101,17 @@ public:
numUsed = 0;
}
/** Removes all elements from the array without freeing the array's allocated storage.
@see clear
*/
void clearQuick()
{
const ScopedLockType lock (getLock());
deleteAllElements();
numUsed = 0;
}
//==============================================================================
/** Returns the number of items currently in the array.
@see operator[]