TU-local STXXL comparator for OSMNodeIDs, needs {min,max}_value

Can not use std::less<>{} because of this.
This commit is contained in:
Daniel J. Hofmann
2016-01-21 12:52:35 +01:00
committed by Patrick Niklaus
parent 54a9173107
commit 0fcca04150
2 changed files with 15 additions and 23 deletions
-21
View File
@@ -1,21 +0,0 @@
#ifndef NODE_ID_HPP
#define NODE_ID_HPP
#include "util/typedefs.hpp"
namespace osrm
{
namespace extractor
{
struct Cmp
{
using value_type = OSMNodeID;
bool operator()(const value_type left, const value_type right) const { return left < right; }
value_type max_value() { return MAX_OSM_NODEID; }
value_type min_value() { return MIN_OSM_NODEID; }
};
}
}
#endif // NODE_ID_HPP