Namespaces
Variants
Views
Actions

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

From cppreference.com
< cpp‎ | error
m (Text replace - "cpp/error/exception" to "cpp/error")
Line 1: Line 1:
 
{{cpp/title | out_of_range}}
 
{{cpp/title | out_of_range}}
{{cpp/error/exception/out_of_range/sidebar}}
+
{{cpp/error/out_of_range/sidebar}}
 
{{ddcl | header=stdexcept |
 
{{ddcl | header=stdexcept |
 
class out_of_range : public std::logic_error;
 
class out_of_range : public std::logic_error;
Line 9: Line 9:
 
===Member functions===
 
===Member functions===
 
{{dcl list begin}}
 
{{dcl list begin}}
{{dcl list template | cpp/error/exception/dcl list constructor|out_of_range}}
+
{{dcl list template | cpp/error/dcl list constructor|out_of_range}}
 
{{dcl list end}}
 
{{dcl list end}}
  
{{cpp/error/exception/exception/inherit}}
+
{{cpp/error/exception/inherit}}

Revision as of 00:35, 29 April 2012

Template:cpp/error/out of range/sidebar

Defined in header <stdexcept>
class out_of_range : public std::logic_error;

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.

Member functions

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