AK: Add Queue::enqueue(const T&).

This commit is contained in:
Andreas Kling 2019-07-13 17:00:30 +02:00
parent ecbf1b673a
commit f712ead1fb
Notes: sideshowbarker 2024-07-19 13:18:14 +09:00

View file

@ -23,6 +23,11 @@ public:
++m_size;
}
void enqueue(const T& value)
{
enqueue(T(value));
}
T dequeue()
{
ASSERT(!is_empty());