Helper function to assert things are ok; eg pos is still in range
| 689 | |
| 690 | // Helper function to assert things are ok; eg pos is still in range |
| 691 | void check() const |
| 692 | { |
| 693 | assert(table); |
| 694 | assert(pos <= table->size()); |
| 695 | } |
| 696 | |
| 697 | // Arithmetic: we just do arithmetic on pos. We don't even need to |
| 698 | // do bounds checking, since STL doesn't consider that its job. :-) |