MCPcopy Create free account
hub / github.com/comaps/comaps / AbsDifference

Function AbsDifference

tools/openlr/helpers.hpp:42–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40
41template <typename T, typename U, std::enable_if_t<!(std::is_signed<T>::value ^ std::is_signed<U>::value), int> = 0>
42std::common_type_t<T, U> AbsDifference(T const a, U const b)
43{
44 return a >= b ? a - b : b - a;
45}
46
47bool PassesRestriction(Graph::Edge const & e, FunctionalRoadClass restriction, FormOfWay formOfWay, int frcThreshold,
48 RoadInfoGetter & infoGetter);

Callers 2

ValidatePathFunction · 0.85
GetBestCandidatePathsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected