piranha
0.10
|
Specialisation of the piranha::math::abs() functor for signed and unsigned integer types, and floating-point types. More...
#include <piranha/math.hpp>
Public Member Functions | |
auto | operator() (const T &x) const -> decltype(impl(x)) |
Call operator. More... | |
Specialisation of the piranha::math::abs() functor for signed and unsigned integer types, and floating-point types.
This specialisation is activated when T
is a signed or unsigned integer type, or a floating-point type. The result will be computed via std::abs()
for floating-point and signed integer types, while for unsigned integer types it will be the input value unchanged.
|
inline |