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 kSign ( const T &  v)
static

Returns the sign of an unsigned 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
1 for positive input or 0 for zero input.