storage: discard the no longer necessary operator!=

This commit is contained in:
skypjack
2026-01-08 11:34:50 +01:00
parent bc93bf2f79
commit 12ec00ac28

View File

@@ -121,11 +121,6 @@ template<typename Lhs, typename Rhs, auto Page>
return lhs.index() == rhs.index();
}
template<typename Lhs, typename Rhs, auto Page>
[[nodiscard]] constexpr bool operator!=(const storage_iterator<Lhs, Page> &lhs, const storage_iterator<Rhs, Page> &rhs) noexcept {
return !(lhs == rhs);
}
template<typename Lhs, typename Rhs, auto Page>
[[nodiscard]] constexpr bool operator<(const storage_iterator<Lhs, Page> &lhs, const storage_iterator<Rhs, Page> &rhs) noexcept {
return lhs.index() > rhs.index();
@@ -203,11 +198,6 @@ template<typename... Lhs, typename... Rhs>
return std::get<0>(lhs.it) == std::get<0>(rhs.it);
}
template<typename... Lhs, typename... Rhs>
[[nodiscard]] constexpr bool operator!=(const extended_storage_iterator<Lhs...> &lhs, const extended_storage_iterator<Rhs...> &rhs) noexcept {
return !(lhs == rhs);
}
} // namespace internal
/*! @endcond */