diff options
author | creator1creeper1 <creator1creeper1@airmail.cc> | 2022-01-08 20:50:34 +0100 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-01-08 22:54:05 +0100 |
commit | f73afbb5ae533706d2445799473de72e7ecfd224 (patch) | |
tree | dae0818ad9add0339abd90888343c8fe0c84b61c /AK | |
parent | 18a2685c6a4802a8ca920702e15ac63564af5c9c (diff) | |
download | serenity-f73afbb5ae533706d2445799473de72e7ecfd224.zip |
AK: Reorder functions in FixedArray so that mutable comes before const
Diffstat (limited to 'AK')
-rw-r--r-- | AK/FixedArray.h | 8 |
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) |