mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-21 18:15:58 +00:00
AK: Reorder functions in FixedArray so that mutable comes before const
This commit is contained in:
parent
18a2685c6a
commit
f73afbb5ae
|
@ -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