mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:58:11 +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;
|
return value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const T& at(int index) const { return m_elements[(m_head + index) % Capacity]; }
|
||||||
|
|
||||||
class ConstIterator {
|
class ConstIterator {
|
||||||
public:
|
public:
|
||||||
bool operator!=(const ConstIterator& other) { return m_index != other.m_index; }
|
bool operator!=(const ConstIterator& other) { return m_index != other.m_index; }
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue