mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 04:37:34 +00:00
AK: Remove redundant compare() functions.
This commit is contained in:
parent
632ff01e17
commit
3aaece8733
4 changed files with 40 additions and 59 deletions
|
@ -63,6 +63,9 @@ struct Array {
|
|||
constexpr const T& operator[](size_t index) const { return __data[index]; }
|
||||
constexpr T& operator[](size_t index) { return __data[index]; }
|
||||
|
||||
template<typename T2, size_t Size2>
|
||||
constexpr bool operator==(const Array<T2, Size2>& other) const { return span() == other.span(); }
|
||||
|
||||
using ConstIterator = SimpleIterator<const Array, const T>;
|
||||
using Iterator = SimpleIterator<Array, T>;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue