You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I wonder why is the less-than operator implemented such as to ignore the value, while the value is used in the equality operator? Strictly speaking types that implement the concept of equality need not necessarily implement less-than and vice-versa. It seems that the goal was to implement both operator via less-than over the fields.
The reason I'm asking this is practical: When adding Interval objects to sets or maps the behavior is different to adding them to an IntervalTree.
I wonder why is the less-than operator implemented such as to ignore the value, while the value is used in the equality operator? Strictly speaking types that implement the concept of equality need not necessarily implement less-than and vice-versa. It seems that the goal was to implement both operator via less-than over the fields.
The reason I'm asking this is practical: When adding
Interval
objects to sets or maps the behavior is different to adding them to anIntervalTree
.IntervalTree/include/intervaltree.hpp
Lines 108 to 119 in 1e4541b
The text was updated successfully, but these errors were encountered: