mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
AK: Define ConstIterator for SegmentedVector
This commit is contained in:
committed by
Jelle Raaijmakers
parent
941da11ece
commit
6be559f639
Notes:
github-actions[bot]
2025-07-13 17:16:25 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/6be559f6394 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5390 Reviewed-by: https://github.com/gmta ✅
@@ -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