Opened 7 years ago

Closed 7 years ago

#849 closed request (fixed)

Segment equality

Reported by: Peter Owned by: Jari Häkkinen
Priority: major Milestone: yat 0.14
Component: utility Version:
Keywords: Cc:

Description

There is no operator== and operator!= for Segment.

Segment doesn't require that T is equal_comparable, but there is a Compare function (default std::less<T>) that can be used to define equality. Two segments are equal if:

  • lhs begin not less than rhs begin
  • rhs begin not less than lhs begin
  • lhs end not less than rhs end
  • rhs end not less than lhs end

Change History (1)

comment:1 Changed 7 years ago by Peter

Resolution: fixed
Status: newclosed

(In [3450]) closes #849

Note: See TracTickets for help on using tickets.