mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-08 02:26:10 +00:00
AK: Define ConstIterator for SegmentedVector
This commit is contained in:
parent
941da11ece
commit
6be559f639
Notes:
github-actions[bot]
2025-07-13 17:16:25 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 6be559f639
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5390
Reviewed-by: https://github.com/gmta ✅
1 changed files with 3 additions and 0 deletions
|
@ -24,9 +24,12 @@ public:
|
|||
bool is_empty() const { return m_size == 0; }
|
||||
|
||||
using Iterator = SimpleIterator<SegmentedVector, VisibleType>;
|
||||
using ConstIterator = SimpleIterator<SegmentedVector const, VisibleType const>;
|
||||
|
||||
Iterator begin() { return Iterator::begin(*this); }
|
||||
ConstIterator begin() const { return ConstIterator::begin(*this); }
|
||||
Iterator end() { return Iterator::end(*this); }
|
||||
ConstIterator end() const { return ConstIterator::end(*this); }
|
||||
|
||||
ALWAYS_INLINE VisibleType const& at(size_t i) const
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue