osrm-backend/include/extractor/node_id.hpp

22 lines
394 B
C++
Raw Normal View History

#ifndef NODE_ID_HPP
#define NODE_ID_HPP
2016-01-02 11:13:44 -05:00
#include "util/typedefs.hpp"
2016-01-05 10:51:13 -05:00
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; }
};
2016-01-05 10:51:13 -05:00
}
}
#endif // NODE_ID_HPP