Namespaces
Variants
Views
Actions

Difference between revisions of "cpp/error/out of range"

From cppreference.com
< cpp‎ | error
m (Shorten template names. Use {{lc}} where appropriate.)
m (Update links.)
Line 11: Line 11:
 
===Member functions===
 
===Member functions===
 
{{dsc begin}}
 
{{dsc begin}}
{{dsc inc | cpp/error/exception/dcl list constructor|out_of_range}}
+
{{dsc inc | cpp/error/exception/dsc constructor|out_of_range}}
 
{{dsc end}}
 
{{dsc end}}
  

Revision as of 21:52, 31 May 2013

Template:cpp/error/out of range/navbar

Defined in header <stdexcept>
class out_of_range;

Defines a type of object to be thrown as exception. It reports errors that are consequence of attempt to access elements out of defined range.

cpp/error/exceptioncpp/error/logic errorstd-out of range-inheritance.svg

Inheritance diagram

Member functions

(constructor)
constructs the exception object
(public member function) [edit]
Template:cpp/error/exception/constructor

Inherited from std::exception

Member functions

[virtual]
destroys the exception object
(virtual public member function of std::exception) [edit]
[virtual]
returns an explanatory string
(virtual public member function of std::exception) [edit]