c++ - where is class std::out_of_range fully defined? -
i searching under /usr/include/c++
on ubuntu linux. in /usr/include/c++/stdexcept
, found this:
class out_of_range : public logic_error { public: explicit out_of_range(const string& __arg); };
but can't find anywhere definition of out_of_range()
constructors.
also when stl throws out_of_range()
exception, uses (example taken stl_vector.h
):
__throw_out_of_range(__n("vector::_m_range_check"));
and, thing can find __throw_out_of_range()
is:
void __throw_out_of_range(const char*) __attribute__((__noreturn__));
can kindly point me definitions of out_of_range
class?
they're defined in libstdc++
. can source code on gcc website. on ubuntu distros, have library installed (libstdc++.so
), not source code. stuff found declarations, not definitions.
Comments
Post a Comment