8 #ifndef DXLE_INC_ALGORITHM_SAFE_DIST_HPP_ 9 #define DXLE_INC_ALGORITHM_SAFE_DIST_HPP_ 13 template<
typename T1,
typename T2>
16 return (n1 < n2) ? n2 - n1 : n1 - n2;
19 #endif //DXLE_INC_ALGORITHM_SAFE_DIST_HPP_
#define DXLE_NOEXCEPT_IF_EXPR(EXPR)
DXLE_CONSTEXPR auto safe_dist(const T1 &n1, const T2 &n2) DXLE_NOEXCEPT_IF_EXPR((n1 - n2)) -> decltype(n1 - n2)