Skip to content

Commit ffaa00d

Browse files
committed
use std::copy instead of std::transform
Signed-off-by: Tomohito Ando <tomohito.ando@tier4.jp>
1 parent 454f049 commit ffaa00d

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

perception/traffic_light_arbiter/src/traffic_light_arbiter.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -56,9 +56,8 @@ std::vector<TrafficLightConstPtr> filter_pedestrian_signals(const LaneletMapCons
5656
for (const auto & crosswalk : crosswalks) {
5757
const auto traffic_light_reg_elems =
5858
crosswalk.regulatoryElementsAs<const lanelet::TrafficLight>();
59-
std::transform(
60-
traffic_light_reg_elems.begin(), traffic_light_reg_elems.end(), std::back_inserter(signals),
61-
[](const auto & elem) { return elem; });
59+
std::copy(
60+
traffic_light_reg_elems.begin(), traffic_light_reg_elems.end(), std::back_inserter(signals));
6261
}
6362

6463
return signals;

0 commit comments

Comments
 (0)