Operations
| 443 | |
| 444 | // Operations |
| 445 | void remove(const T& value) { |
| 446 | iterator it = begin(); |
| 447 | while (it != end()) { |
| 448 | if (*it == value) { |
| 449 | it = erase(it); |
| 450 | } else { |
| 451 | ++it; |
| 452 | } |
| 453 | } |
| 454 | } |
| 455 | |
| 456 | template<typename Predicate> |
| 457 | void remove_if(Predicate pred) { |
no test coverage detected