提交 6c0f9632 编写于 作者: X Xiangquan Xiao

Common: Retire erase_where.

上级 25219bb2
......@@ -202,13 +202,6 @@ PathPoint GetWeightedAverageOfTwoPathPoints(const PathPoint& p1,
const PathPoint& p2,
const double w1, const double w2);
// a wrapper template function for remove_if (notice that remove_if cannot
// change the Container size)
template <class Container, class F>
void erase_where(Container& c, F&& f) { // NOLINT
c.erase(std::remove_if(c.begin(), c.end(), std::forward<F>(f)), c.end());
}
// a wrapper template function for remove_if on associative containers
template <class Container, class F>
void erase_map_where(Container& c, F&& f) { // NOLINT
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册