![]() |
От: | пффф | |
Дата: | 14.02.25 14:44 | ||
Оценка: |
Defines a type of object to be thrown as exception. It can be used to report range errors (that is, situations where a result of a computation cannot be represented by the destination type).
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.
Exceptions
std::invalid_argument if no conversion could be performed.
std::out_of_range if the converted value would fall out of the range of the result type or if the underlying function (std::strtoul or std::strtoull) sets errno to ERANGE.