Skip to content

Commit 927ae0f

Browse files
committed
document equality comparability of Iterator (necessary for Iterator of Iterators)
1 parent 5ad05d2 commit 927ae0f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

cpp/src/arrow/util/iterator.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,9 @@ class Iterator : public util::EqualityComparable<Iterator<T>> {
8989
return status;
9090
}
9191

92-
/// Iterators will only compare equal if they are both null
92+
/// Iterators will only compare equal if they are both null.
93+
/// Equality comparability is required to make an Iterator of Iterators
94+
/// (to check for the end condition).
9395
bool Equals(const Iterator& other) const { return ptr_ == other.ptr_; }
9496

9597
explicit operator bool() const { return ptr_ != NULLPTR; }

0 commit comments

Comments
 (0)