diff --git a/Subtrees/beast/modules/beast_core/containers/beast_OwnedArray.h b/Subtrees/beast/modules/beast_core/containers/beast_OwnedArray.h index 697a6e3dcd..f4f964cef8 100644 --- a/Subtrees/beast/modules/beast_core/containers/beast_OwnedArray.h +++ b/Subtrees/beast/modules/beast_core/containers/beast_OwnedArray.h @@ -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[]