LibWeb: Make reverse iterators work for const NonnullPtrVectors

This commit is contained in:
Andreas Kling 2022-04-13 19:01:28 +02:00
parent 6712bbc0ee
commit 83082b12b7
Notes: sideshowbarker 2024-07-17 11:50:07 +09:00

View File

@ -32,7 +32,7 @@ public:
using ConstIterator = SimpleIterator<const NonnullPtrVector, const T>;
using Iterator = SimpleIterator<NonnullPtrVector, T>;
using ReverseIterator = SimpleReverseIterator<NonnullPtrVector, T>;
using ReverseConstIterator = SimpleReverseIterator<NonnullPtrVector, T const>;
using ReverseConstIterator = SimpleReverseIterator<NonnullPtrVector const, T const>;
ALWAYS_INLINE constexpr ConstIterator begin() const { return ConstIterator::begin(*this); }
ALWAYS_INLINE constexpr Iterator begin() { return Iterator::begin(*this); }