15 #ifndef OPENSCENARIO_INTERPRETER__FUNCTIONAL__EQUAL_TO_HPP_
16 #define OPENSCENARIO_INTERPRETER__FUNCTIONAL__EQUAL_TO_HPP_
21 #include <type_traits>
25 inline namespace syntax
27 template <
typename T,
typename =
void>
33 struct equal_to<T, typename
std::enable_if<std::is_floating_point<T>::value>::type>
35 constexpr
auto operator()(
const T & lhs,
const T & rhs)
const noexcept
37 return std::abs(lhs - rhs) < std::numeric_limits<typename std::decay<T>::type>::epsilon();
Definition: escape_sequence.hpp:22
constexpr auto operator()(const T &lhs, const T &rhs) const noexcept
Definition: equal_to.hpp:35
Definition: equal_to.hpp:29