mirror of
https://github.com/mpusz/mp-units.git
synced 2025-08-01 03:14:29 +02:00
style: formatting to make pre-commit happy
This commit is contained in:
@@ -45,7 +45,8 @@ std::vector<distance> task::make_leg_total_distances(const legs& legs)
|
||||
std::vector<distance> res;
|
||||
res.reserve(legs.size());
|
||||
auto to_length = [](const leg& l) { return l.get_distance(); };
|
||||
std::transform_inclusive_scan(legs.cbegin(), legs.cend(), std::back_inserter(res), std::plus(), to_length, distance::zero());
|
||||
std::transform_inclusive_scan(legs.cbegin(), legs.cend(), std::back_inserter(res), std::plus(), to_length,
|
||||
distance::zero());
|
||||
return res;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user