Multiply two signed integers LHS and RHS.
Declared in <llvm/Support/CheckedArithmetic.h>
template<typename T>
std::optional<T>
checkedMul(
T LHS,
T RHS)
requires std::is_signed_v<T>;
Optional of product if no signed overflow occurred, std::nullopt otherwise.
| Name | Description |
|---|---|
| LHS | Left-hand operand of the product. |
| RHS | Right-hand operand of the product. |