mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:47:35 +00:00
AK: Add Queue::enqueue(const T&).
This commit is contained in:
parent
ecbf1b673a
commit
f712ead1fb
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…
Add table
Add a link
Reference in a new issue