mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-08-15 16:30:36 +03:00
AK: Add Queue::clear() to clear out a Queue.
This commit is contained in:
parent
731f91f1ab
commit
66db6f4f92
Notes:
sideshowbarker
2024-07-19 13:00:33 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/66db6f4f925
@ -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…
Reference in New Issue
Block a user