2#ifndef LIBSBX_MATH_TRAITS_HPP_
3#define LIBSBX_MATH_TRAITS_HPP_
13template<
integral Type>
16 template<scalar Other>
17 inline static constexpr auto equal(Type lhs, Other rhs)
noexcept ->
bool {
18 return lhs ==
static_cast<Type
>(rhs);
23template<
floating_po
int Type>
26 template<scalar Other>
27 inline static constexpr auto equal(Type lhs, Other rhs)
noexcept ->
bool {
28 return std::abs(lhs -
static_cast<Type
>(rhs)) <= epsilon_v<Type>;
Core numeric concepts and type traits.
Definition: traits.hpp:11