mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-23 09:51:57 -05:00
AK: Reorder functions in FixedArray so that mutable comes before const
This commit is contained in:
parent
18a2685c6a
commit
f73afbb5ae
1 changed files with 4 additions and 4 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue