mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +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: https://github.com/SerenityOS/serenity/commit/f712ead1fbf
1 changed files with 5 additions and 0 deletions
|
@ -23,6 +23,11 @@ public:
|
|||
++m_size;
|
||||
}
|
||||
|
||||
void enqueue(const T& value)
|
||||
{
|
||||
enqueue(T(value));
|
||||
}
|
||||
|
||||
T dequeue()
|
||||
{
|
||||
ASSERT(!is_empty());
|
||||
|
|
Loading…
Reference in a new issue