Ignore:
Timestamp:
Apr 1, 2016, 8:23:07 AM (6 years ago)
Author:
Peter
Message:

add function compare_3way(segment, element)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/yat/utility/Segment.h

    r3455 r3488  
    209209
    210210  /**
     211     \return -1 if \a all elements in \a segment are less than \a element, 0 if if \a element overlaps with \a segment, and 1 otherwise.
     212
     213     \relates Segment
     214
     215     \since new in yat 0.14
     216   */
     217  template<typename T, class Compare>
     218  int compare_3way(const Segment<T, Compare>& segment,
     219                   const T& element)
     220  {
     221    return -compare_3way(element, segment);
     222  }
     223
     224  /**
    211225     \return intersection of \a a and \a b. If \a a and \a b do not
    212226     overlap an empty Section is returned (begin==end), but the exact
Note: See TracChangeset for help on using the changeset viewer.