mirror of
https://github.com/SerenityOS/serenity
synced 2026-04-25 17:15:42 +02:00
AK: Define ConstIterator for SegmentedVector
(cherry picked from commit 6be559f6394b210ddd3db48fb158d7410adbd2a1)
This commit is contained in:
committed by
Nico Weber
parent
2a9154e77c
commit
5a34197ed7
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user