Helper function to assert things are ok; eg pos is still in range
| 587 | |
| 588 | // Helper function to assert things are ok; eg pos is still in range |
| 589 | void check() const |
| 590 | { |
| 591 | assert(table); |
| 592 | assert(pos <= table->size()); |
| 593 | } |
| 594 | |
| 595 | // Arithmetic: we just do arithmetic on pos. We don't even need to |
| 596 | // do bounds checking, since STL doesn't consider that its job. :-) |