| 134 | |
| 135 | template<class T> |
| 136 | void cb(ctx_t::pointer ctx, add_const_t<T> i, void *userdata) { |
| 137 | auto &f = *(cb_simple_t<T> *) userdata; |
| 138 | |
| 139 | // Cannot similarly filter on eol here. Unless reported otherwise assume |
| 140 | // we have no need for special filtering like cb? |
| 141 | f(ctx, i); |
| 142 | } |
| 143 | |
| 144 | template<class T> |
| 145 | using cb_t = std::function<void(ctx_t::pointer, add_const_t<T> i, int eol)>; |