C++ Exception Library - range_error


Advertisements

Description

It is a range error exception and some components of the standard library also throw exceptions of this type to signal range errors.

Declaration

Following is the declaration for std::range_error.

class range_error;

C++11

class range_error;

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.

  • what − It is used to get string identifying exception.

exception.htm
Advertisements