Zen API
 All Classes Files Functions Variables Typedefs Friends Macros Modules Pages
template<typename T >
static kInline std::enable_if<!std::is_unsigned<T>::value, T>::type kAbs ( const T &  v)
static

Returns the absolute value of a signed number.

This method requires C++ 2011; accordingly, it cannot be used in inline functions that may be processed by C compilers or older C++ compilers.

Parameters
vInput value.
Returns
Absolute value of input argument.