mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-09-11 05:25:32 +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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void clear()
|
||||||
|
{
|
||||||
|
m_segments.clear();
|
||||||
|
m_index_into_first = 0;
|
||||||
|
m_size = 0;
|
||||||
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const int segment_size = 1000;
|
static const int segment_size = 1000;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user