| 55 | void update_key(int n) { |
| 56 | assert(loc[n] != -1), swim(loc[n]), sink(loc[n]); } |
| 57 | bool empty() { return count == 0; } |
| 58 | int size() { return count; } |
| 59 | void clear() { count = 0, memset(loc, 255, len << 2); }}; |
| 60 | // vim: cc=60 ts=2 sts=2 sw=2: |
no outgoing calls