I am looking under /usr/include/c++ on my Ubuntu Linux. In /usr/include/c++/stdexcept I found the following:
class out_of_range : public logic_error { public: explicit out_of_range(const string& __arg); };
But I can not find the definition of out_of_range() constructors out_of_range() .
Also, when the STL throws an out_of_range() exception, it uses (an example taken from stl_vector.h ):
__throw_out_of_range(__N("vector::_M_range_check"));
And the only thing I can find for __throw_out_of_range() :
void __throw_out_of_range(const char*) __attribute__((__noreturn__));
Could you tell me where the definitions of the out_of_range class out_of_range ?
source share