mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:57:45 +00:00
AK: Add Queue::clear() to clear out a Queue.
This commit is contained in:
parent
731f91f1ab
commit
66db6f4f92
1 changed files with 7 additions and 0 deletions
|
@ -40,6 +40,13 @@ public:
|
|||
return value;
|
||||
}
|
||||
|
||||
void clear()
|
||||
{
|
||||
m_segments.clear();
|
||||
m_index_into_first = 0;
|
||||
m_size = 0;
|
||||
}
|
||||
|
||||
private:
|
||||
static const int segment_size = 1000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue