Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 3 additions & 8 deletions include/util/vector_view.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
#include <cstddef>

#include <algorithm>
#include <compare>
#include <iterator>
#include <type_traits>
#include <utility>
Expand Down Expand Up @@ -94,14 +95,8 @@ template <typename DataT> class VectorViewIterator
return it;
}

friend bool operator==(const VectorViewIterator &a, const VectorViewIterator &b)
{
return a.m_value == b.m_value;
}
friend bool operator!=(const VectorViewIterator &a, const VectorViewIterator &b)
{
return !(a == b);
}
friend bool operator==(const VectorViewIterator &a, const VectorViewIterator &b) = default;
friend auto operator<=>(const VectorViewIterator &a, const VectorViewIterator &b) = default;

private:
DataT *m_value;
Expand Down
Loading