It is an out-of-range exception and some components of the standard library, such as vector, deque, string and bitset also throw exceptions of this type to signal arguments out of range.
Following is the declaration for std::out_of_range.
No-throw guarantee − no members throw exceptions.
constructor − what_arg has the same content as the value returned by member what.
whatminus; It is used to get string identifying exception.