Multiplication operator
Synopsis
Declared in <mp‐units/utility/safe_int.h>
[[nodiscard]]
constexpr
safe_int<detail::integral_op_result_t<U, T>, ErrorPolicy>
operator*(
constrained<U, CP> lhs,
safe_int rhs);
Return Value
Wraps an integral type with overflow detection.
|
Note
|
The return value should not be discarded. |
Parameters
Name |
Description |
lhs |
The left operand |
rhs |
The right operand |
Created with MrDocs