| 277 | |
| 278 | template <typename Container, typename ForwardIt, typename UnaryPredicate> |
| 279 | void remove_if(Container& cont, ForwardIt first, ForwardIt second, UnaryPredicate p) |
| 280 | { |
| 281 | for (auto iter = first; iter != second;) |
| 282 | { |
| 283 | if (p(*iter)) |
| 284 | { |
| 285 | iter = cont.erase(iter); |
| 286 | } |
| 287 | else |
| 288 | { |
| 289 | ++iter; |
| 290 | } |
| 291 | } |
| 292 | } |
| 293 | VTK_ABI_NAMESPACE_END |
| 294 | } // namespace detail |
| 295 |
no test coverage detected