mp_units::utility::safe_int_throw_policy¶
Error policy that throws std::overflow_error on overflow (hosted only).
Synopsis¶
Declared in <mp-units/utility/safe_int.h>
struct safe_int_throw_policy : throw_policy
Base Classes¶
| Name | Description |
|---|---|
throw_policy | Error policy that throws std::domain_error on constraint violation (hosted only). |
Static Member Functions¶
| Name |
|---|
on_constraint_violation [noreturn] |
on_overflow [noreturn] |