小编Moh*_*rma的帖子

std::stable_partition() 和 std::partition() 有什么区别?

stable_partition(vect.begin(), vect.end(), [](int x) { return x % 2 == 0; });

partition(vect.begin(), vect.end(), [](int x) {
  return x % 2 == 0;
});
Run Code Online (Sandbox Code Playgroud)

上面的代码是为了解释两者之间的区别。

c++ algorithm parameters partition

3
推荐指数
2
解决办法
1059
查看次数

标签 统计

algorithm ×1

c++ ×1

parameters ×1

partition ×1