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