8 #ifndef DXLE_INC_CSTDLIB_ABS_HPP_ 9 #define DXLE_INC_CSTDLIB_ABS_HPP_ 13 #include <type_traits> 14 #ifdef DXLE_NO_CXX11_CONSTEXPR 18 #else //DXLE_NO_CXX11_CONSTEXPR 24 return j < 0 ? -j : j;
29 return j < 0 ? -j : j;
34 return j < 0 ? -j : j;
41 template<typename IntType, enable_if_t<std::is_integral<IntType>::value && std::is_signed<IntType>::value, std::nullptr_t> =
nullptr>
44 return j < 0 ? -j : j;
48 #endif //DXLE_NO_CXX11_CONSTEXPR 50 template<typename IntType, enable_if_t<std::is_integral<IntType>::value && std::is_unsigned<IntType>::value, std::nullptr_t> =
nullptr>
56 #endif //DXLE_INC_CSTDLIB_ABS_HPP_
DXLE_CONSTEXPR long long llabs(long long j) DXLE_NOEXCEPT_OR_NOTHROW
DXLE_CONSTEXPR int abs(int j) DXLE_NOEXCEPT_OR_NOTHROW
DXLE_CONSTEXPR FloatType abs(FloatType x) DXLE_NOEXCEPT_OR_NOTHROW
#define DXLE_NOEXCEPT_OR_NOTHROW
DXLE_CONSTEXPR long labs(long j) DXLE_NOEXCEPT_OR_NOTHROW