mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
AK: Reorder functions in FixedArray so that mutable comes before const
This commit is contained in:
parent
18a2685c6a
commit
f73afbb5ae
Notes:
sideshowbarker
2024-07-17 21:24:25 +09:00
Author: https://github.com/creator1creeper1 Commit: https://github.com/SerenityOS/serenity/commit/f73afbb5ae5
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