| 40 | |
| 41 | template <class Container, class Iterator> |
| 42 | static auto |
| 43 | erase_iterator(Container& c, Iterator pos, Iterator last) -> decltype(c.erase_after(pos, last)) |
| 44 | { |
| 45 | auto n = std::distance(c.begin(), pos); |
| 46 | auto it = n == 0 ? c.before_begin() : std::next(c.begin(), n - 1); |
| 47 | return c.erase_after(it, last); |
| 48 | } |
| 49 | |
| 50 | template <class Container, class Iterator> |
| 51 | static auto erase_iterator(Container& c, Iterator pos, Iterator last) -> decltype(c.erase(pos, |
no test coverage detected