Skip to content

Commit 067fffb

Browse files
committed
iota_iterator: cleanup
1 parent 139d618 commit 067fffb

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎src/entt/core/iterator.hpp‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -108,9 +108,7 @@ struct iota_iterator final {
108108
* @param other A properly initialized iota iterator.
109109
* @return True if the two iterators are identical, false otherwise.
110110
*/
111-
[[nodiscard]] constexpr bool operator==(const iota_iterator &other) const noexcept {
112-
return current == other.current;
113-
}
111+
[[nodiscard]] constexpr bool operator==(const iota_iterator &other) const noexcept = default;
114112

115113
private:
116114
value_type current;

0 commit comments

Comments
 (0)