Jelajahi Sumber

iota_iterator: discard the no longer necessary operator!=

skypjack 1 bulan lalu
induk
melakukan
e35b698f26
1 mengubah file dengan 0 tambahan dan 12 penghapusan
  1. 0 12
      src/entt/core/iterator.hpp

+ 0 - 12
src/entt/core/iterator.hpp

@@ -120,18 +120,6 @@ template<typename Type>
     return *lhs == *rhs;
 }
 
-/**
- * @brief Comparison operator.
- * @tparam Type Value type of the iota iterator.
- * @param lhs A properly initialized iota iterator.
- * @param rhs A properly initialized iota iterator.
- * @return True if the two iterators differ, false otherwise.
- */
-template<typename Type>
-[[nodiscard]] constexpr bool operator!=(const iota_iterator<Type> &lhs, const iota_iterator<Type> &rhs) noexcept {
-    return !(lhs == rhs);
-}
-
 /**
  * @brief Utility class to create an iterable object from a pair of iterators.
  * @tparam It Type of iterator.