1
Fork 0
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:
asynts 2020-12-31 00:35:15 +01:00 committed by Andreas Kling
parent 632ff01e17
commit 3aaece8733
4 changed files with 40 additions and 59 deletions

View file

@ -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>;