Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Flags
safe-html, strict-same
Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Returns:;; The number of erased elements. Notes:;; Equivalent to: + +返回:;; 被移除的元素数量。备注:;; 等价于:```c++auto original_size = c.size();for (auto i = c.begin(), last = c.end(); i != last; ) { if (pred(*i)) { i = c.erase(i); } else {++i; } }++i; }}return original_size - c.size();```+ Note that the references passed to `pred` are non-const.注意,传递给 `pred` 的引用是非常量的。