BSPair * Overview::operator [](int i) const { if (i >= num_lines) throw Out_of_range(); return tries[i]; }
void check(size_t pos) const { if(pos < 0 || pos >= s.size()) throw Out_of_range(); }