summaryrefslogtreecommitdiff
path: root/AK/Queue.h
AgeCommit message (Collapse)Author
2020-09-25Meta+AK: Make clang-format-10 cleanBen Wiederhake
2020-02-25AK: Make Queue use size_t for its sizeAndreas Kling
2020-01-18Meta: Add license header to source filesAndreas Kling
As suggested by Joshua, this commit adds the 2-clause BSD license as a comment block to the top of every source file. For the first pass, I've just added myself for simplicity. I encourage everyone to add themselves as copyright holders of any file they've added or modified in some significant way. If I've added myself in error somewhere, feel free to replace it with the appropriate copyright holder instead. Going forward, all new source files should include a license header.
2019-11-03AK: Allow overriding the Queue segment size with a template parameterAndreas Kling
2019-11-03AK: Add Queue::head()Andreas Kling
This returns a const T& for the first element in the queue, without dequeuing it.
2019-07-28AK: Add Queue::clear() to clear out a Queue.Andreas Kling
2019-07-13AK: Add Queue::enqueue(const T&).Andreas Kling
2019-06-15AK: Add a simple Queue<T> class.Andreas Kling
The underlying data structure is a singly-linked list of Vector<T>. We never shift any of the vector contents around, but we batch the memory allocations into 1000-element segments.