Template Function lanelet::helper::forEachPair

Function Documentation

template<typename FwIter, typename Func>
void lanelet::helper::forEachPair(FwIter first, FwIter end, Func f)

apply a function for each pair of adjacent elements in a range

This is useful for iterating over a the segments in a LineString.

Parameters:
  • first – first element in range

  • end – past-the-end iterator

  • f – function/lambda to apply (defines operator())