![]() |
VCCC
2024.05
VisualCamp Common C++ library
|
#include <algorithm>
#include <cmath>
#include <limits>
#include <type_traits>
#include "vccc/__math/epsilon.hpp"
Go to the source code of this file.
Classes | |
struct | float_equal_to< T > |
function object implementing approximately equal of x and y More... | |
struct | float_equal_to< void > |
A specialization of vccc::float_equal_to with parameter and return type deduced. More... | |
Namespaces | |
vccc | |
Functions | |
template<typename T , typename U , typename E = std::common_type_t<T, U>> | |
constexpr bool | float_equal (const T &a, const U &b, const E &epsilon=vccc::epsilon< E >()) |
Compare if two floating-points are approximately equal. More... | |