Loading…
|
Translation uploaded |
|
|
String added in the repository |
|
Things to check
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` 的引用是非常量的。