Show: Delphi C++
From RAD Studio API Documentation
procedure Clear; inline;
void __fastcall Clear();
Clear removes all entries from the queue. Count is set to 0. This does not change the capacity. This is a O(n) operation where n is the length of the queue.
Note: Clear does not free the items as they are dequeued. If you need to free them, use the OnNotify event, which occurs for every item dequeued and provides the dequeued item.