Namespaces
Variants
Views
Actions

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

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

Revision as of 18:43, 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

Template:cpp/error/exception/dcl list constructor
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]