mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 10:36:02 +00:00
AK: Add Queue::enqueue(const T&).
This commit is contained in:
parent
ecbf1b673a
commit
f712ead1fb
Notes:
sideshowbarker
2024-07-19 13:18:14 +09:00
Author: https://github.com/awesomekling
Commit: f712ead1fb
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ public:
|
||||||
++m_size;
|
++m_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void enqueue(const T& value)
|
||||||
|
{
|
||||||
|
enqueue(T(value));
|
||||||
|
}
|
||||||
|
|
||||||
T dequeue()
|
T dequeue()
|
||||||
{
|
{
|
||||||
ASSERT(!is_empty());
|
ASSERT(!is_empty());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue