|
constexprnoexcept |
Returns an absolute value of a scalar.
| ArithmeticType | A type of the scalar. |
| val | The scalar. |
The function is only participates in overload resolution for types ArithmeticType for which either std::is_signed<ArithmeticType>::value or std::is_unsigned<ArithmeticType>::value is true.
If ArithmeticType denotes an unsigned type, the function performs no action and just forwards the argument (passed in as a universal reference) back to the caller.