A C++ template library for embedded applications
MIT licensed
Designed and
maintained by
John Wellbelove

absolute

A template function that returns the absolute value.

The function has two variants; one for signed and one for unsigned types.
The unsigned variant merely returns the parameter value.
The variant is chosen at compile time according to the parameter type.
____________________________________________________________________________________________________
template <typename T>
ETL_CONSTEXPR T absolute(T value)
absolute.h