Difference between revisions of "cpp/error/out of range"
From cppreference.com
m (moved cpp/error/exception/out of range to cpp/error/out of range) |
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 | + | {{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 | + | {{dcl list template | cpp/error/dcl list constructor|out_of_range}} |
{{dcl list end}} | {{dcl list end}} | ||
− | {{cpp/error | + | {{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
Inherited from std::exception
Member functions
[virtual] |
destroys the exception object (virtual public member function of std::exception )
|
[virtual] |
returns an explanatory string (virtual public member function of std::exception )
|