summaryrefslogtreecommitdiff
path: root/AK
diff options
context:
space:
mode:
authorcreator1creeper1 <creator1creeper1@airmail.cc>2022-01-08 20:50:34 +0100
committerLinus Groh <mail@linusgroh.de>2022-01-08 22:54:05 +0100
commitf73afbb5ae533706d2445799473de72e7ecfd224 (patch)
treedae0818ad9add0339abd90888343c8fe0c84b61c /AK
parent18a2685c6a4802a8ca920702e15ac63564af5c9c (diff)
downloadserenity-f73afbb5ae533706d2445799473de72e7ecfd224.zip
AK: Reorder functions in FixedArray so that mutable comes before const
Diffstat (limited to 'AK')
-rw-r--r--AK/FixedArray.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/AK/FixedArray.h b/AK/FixedArray.h
index 310b2ff739..e793de8a38 100644
--- a/AK/FixedArray.h
+++ b/AK/FixedArray.h
@@ -114,17 +114,17 @@ public:
::swap(m_elements, other.m_elements);
}
- using ConstIterator = SimpleIterator<FixedArray const, T const>;
using Iterator = SimpleIterator<FixedArray, T>;
+ using ConstIterator = SimpleIterator<FixedArray const, T const>;
- ConstIterator begin() const { return ConstIterator::begin(*this); }
Iterator begin() { return Iterator::begin(*this); }
+ ConstIterator begin() const { return ConstIterator::begin(*this); }
- ConstIterator end() const { return ConstIterator::end(*this); }
Iterator end() { return Iterator::end(*this); }
+ ConstIterator end() const { return ConstIterator::end(*this); }
- Span<T const> span() const { return { data(), size() }; }
Span<T> span() { return { data(), size() }; }
+ Span<T const> span() const { return { data(), size() }; }
private:
FixedArray(size_t size, T* elements)