static double find(void* v) { TQueue* q = (TQueue*)v; TQItem* i = q->find(*getarg(1)); double x = -1e9; if (i) { x = i->t_; q->remove(i); } return x; }
static double remove(void* v) { TQueue* q = (TQueue*)v; q->remove(q->find(*getarg(1))); return 1.; }