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