C++ Exception Library - out_of_range


Advertisements

Description

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.

Declaration

Following is the declaration for std::out_of_range.

class out_of_range;

C++11

class out_of_range;

Parameters

none

Return Value

none

Exceptions

No-throw guarantee − no members throw exceptions.

Members

  • constructor − what_arg has the same content as the value returned by member what.

  • whatminus; It is used to get string identifying exception.

exception.htm
Advertisements