mp_units::utility::throw_policy::on_constraint_violation

Reports a constraint violation by throwing std::domain_error.

Synopsis

Declared in <mp-units/utility/constrained.h>

[[noreturn]]
static
void
on_constraint_violation(std::string_view msg);

Return Value

NOTE

This function does not return.

Parameters

NameDescription
msgdescription of the violated constraint