COIN-OR::LEMON - Graph Library

Changeset 897:ef09eee53b09 in lemon-0.x for src/hugo/extended_pair.h


Ignore:
Timestamp:
09/22/04 10:04:31 (20 years ago)
Author:
Balazs Dezso
Branch:
default
Phase:
public
Convert:
svn:c9d7d8f5-90d6-0310-b91f-818b3a526b0e/lemon/trunk@1205
Message:

The default constructors are removed from the maps.
The ArrayMap? is the map structure of the graphs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/hugo/extended_pair.h

    r782 r897  
    3737bool operator<(const extended_pair<T1, LA1, T2, LA2>& left,
    3838                const extended_pair<T1, RA1, T2, RA2>& right) {
    39   if (left.first == right.first) return left.second == right.second;
    40   return left.first < right.first;
     39  return left.first < right.first ||
     40           (!(right.first<left.first) && left.second < right.second);
    4141}
    4242
Note: See TracChangeset for help on using the changeset viewer.