Name

out_of_range class — Argument out of range

Synopsis

class out_of_range : public logic_error {
public:
  explicit out_of_range(const string& what_arg);
};

The out_of_range class is used when an index or similar value is out of its expected or allowed range. For example, the at member (of deque, string, and vector) throws out_of_range if the index is invalid.