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

Description

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

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

Templates

T

Parameters

T X
T Y
T& Result