mirror of
https://github.com/zebrajr/ladybird.git
synced 2026-01-15 12:15:15 +00:00
AK: Define ConstIterator for SegmentedVector
This commit is contained in:
committed by
Jelle Raaijmakers
parent
941da11ece
commit
6be559f639
@@ -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