mirror of
https://github.com/RGBCube/serenity
synced 2025-05-14 09:34:59 +00:00
AK: Add CircularQueue::at().
This commit is contained in:
parent
5dfdcf796d
commit
f87dec1cbf
1 changed files with 2 additions and 0 deletions
|
@ -46,6 +46,8 @@ public:
|
|||
return value;
|
||||
}
|
||||
|
||||
const T& at(int index) const { return m_elements[(m_head + index) % Capacity]; }
|
||||
|
||||
class ConstIterator {
|
||||
public:
|
||||
bool operator!=(const ConstIterator& other) { return m_index != other.m_index; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue