1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 02:37:36 +00:00

AK: Get rid of ConstVectorIterator.

We can achieve the same with just a VectorIterator<const Vector, const T>.
This commit is contained in:
Andreas Kling 2019-06-27 14:50:22 +02:00
parent ebe108efa6
commit 50700c107f
5 changed files with 54 additions and 42 deletions

View file

@ -29,7 +29,7 @@ public:
Iterator begin() { return Iterator(*this, 0); }
Iterator end() { return Iterator(*this, size()); }
using ConstIterator = ConstVectorIterator<NonnullRefPtrVector, T>;
using ConstIterator = VectorIterator<const NonnullRefPtrVector, const T>;
ConstIterator begin() const { return ConstIterator(*this, 0); }
ConstIterator end() const { return ConstIterator(*this, size()); }