Skip to content
This repository has been archived by the owner on Jul 1, 2024. It is now read-only.

Commit

Permalink
perf(lanelet2_extension): use std::unordered_set<>::find instead of s…
Browse files Browse the repository at this point in the history
…td::find (#244)

perf(exists): use std::unordered_set<>::find instead of std::find

Signed-off-by: Maxime CLEMENT <[email protected]>
  • Loading branch information
maxime-clem authored May 17, 2024
1 parent ede5f15 commit b92f64f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tmp/lanelet2_extension/lib/visualization.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ namespace
template <typename T>
bool exists(const std::unordered_set<T> & set, const T & element)
{
return std::find(set.begin(), set.end(), element) != set.end();
return set.find(element) != set.end();
}

void adjacentPoints(
Expand Down

0 comments on commit b92f64f

Please sign in to comment.