| 56 | } |
| 57 | |
| 58 | void remove(Fn fn, void* arg) { |
| 59 | std::vector<Pair>::iterator |
| 60 | it = std::find(_fns.begin(), _fns.end(), std::make_pair(fn, arg)); |
| 61 | if (it != _fns.end()) { |
| 62 | std::vector<Pair>::iterator ite = it + 1; |
| 63 | for (; ite != _fns.end() && ite->first == fn && ite->second == arg; |
| 64 | ++ite) {} |
| 65 | _fns.erase(it, ite); |
| 66 | } |
| 67 | } |
| 68 | |
| 69 | private: |
| 70 | std::vector<Pair> _fns; |
no test coverage detected