Computes the product of lhs and rhs.
Declared in <mp-units/utility/safe_int.h>
[[nodiscard]]
constexpr
safe_int</* implementation-defined */, ErrorPolicy>
operator*(
safe_int lhs,
safe_int rhs);
the product of lhs and rhs; triggers ErrorPolicy::on_overflow on overflow
The return value should not be discarded.
| Name | Description |
|---|---|
| lhs | the first value to multiply |
| rhs | the second value to multiply |