ΒΆtemplate <typename T>
std::enable_if_t<std::is_signed<T>::value, T>
AddOverflow(T X, T Y, T& Result)

Description

Add two signed integers, computing the two's complement truncated result, returning true if overflow occurred.

Declared at: llvm/include/llvm/Support/MathExtras.h:924

Templates

T

Parameters

T X
T Y
T& Result