cpp/numeric/math/abs

Computes the absolute value of the integer number. The behavior is undefined if the result cannot be represented by the return type.

If is called with an unsigned integral argument that cannot be converted to  by integral promotion, the program is ill-formed.

Return value
The absolute value of (i.e. ), if it is representable.