Namespaces
Variants
Views
Actions

cpp/error/out of range/out of range

From cppreference.com
< cpp‎ | error‎ | out of range
Revision as of 14:27, 2 November 2012 by P12bot (Talk | contribs)

std::out_of_range::out_of_range

explicit out_of_range( const std::string& what_arg );
(1)
explicit out_of_range( const char* what_arg );
(2) (since C++11)

Constructs the exception object with what_arg as explanatory string that can be accessed through what().

Parameters

what_arg - explanatory string

Exceptions

(none)