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