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

Function ParseSingleLane

libs/routing/lanes/lanes_parser.cpp:42–52  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

40}};
41
42bool ParseSingleLane(auto && laneWayRange, LaneWay & laneWay)
43{
44 auto const it = std::ranges::find_if(
45 g_laneWayNames, [&laneWayRange](auto const & pair) { return std::ranges::equal(laneWayRange, pair.second); });
46 if (it != g_laneWayNames.end())
47 {
48 laneWay = it->first;
49 return true;
50 }
51 return false;
52}
53
54} // namespace
55

Callers 1

ParseLanesFunction · 0.85

Calls 1

endMethod · 0.45

Tested by

no test coverage detected