|
|
@@ -97,38 +97,38 @@ private:
|
|
|
difference_type offset;
|
|
|
};
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr std::ptrdiff_t operator-(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr std::ptrdiff_t operator-(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return rhs.index() - lhs.index();
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator==(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator==(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return lhs.index() == rhs.index();
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator!=(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator!=(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return !(lhs == rhs);
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator<(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator<(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return lhs.index() > rhs.index();
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator>(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator>(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return lhs.index() < rhs.index();
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator<=(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator<=(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return !(lhs > rhs);
|
|
|
}
|
|
|
|
|
|
-template<typename Type, typename Other>
|
|
|
-[[nodiscard]] constexpr bool operator>=(const sparse_set_iterator<Type> &lhs, const sparse_set_iterator<Other> &rhs) noexcept {
|
|
|
+template<typename Container>
|
|
|
+[[nodiscard]] constexpr bool operator>=(const sparse_set_iterator<Container> &lhs, const sparse_set_iterator<Container> &rhs) noexcept {
|
|
|
return !(lhs < rhs);
|
|
|
}
|
|
|
|