Add OwnedArray::clearQuick()

This commit is contained in:
Vinnie Falco
2013-07-27 10:47:32 -07:00
parent 67f22e602e
commit 4edf1fd8fa
@@ -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[]