mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-02 00:45:58 +00:00
Add OwnedArray::clearQuick()
This commit is contained in:
@@ -101,6 +101,17 @@ public:
|
|||||||
numUsed = 0;
|
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.
|
/** Returns the number of items currently in the array.
|
||||||
@see operator[]
|
@see operator[]
|
||||||
|
|||||||
Reference in New Issue
Block a user