mimic++ v6
Loading...
Searching...
No Matches
FloatingPointMatchers.hpp File Reference
#include "mimic++/Fwd.hpp"
#include "mimic++/matchers/GeneralMatchers.hpp"
#include <algorithm>
#include <cmath>
#include <concepts>
#include <limits>
#include <stdexcept>
#include <tuple>
Include dependency graph for FloatingPointMatchers.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

namespace  mimicpp
 
namespace  mimicpp::matches
 

Functions

consteval auto mimicpp::matches::NaN () noexcept
 Tests, whether the floating-point target is NaN.
 
constexpr auto mimicpp::matches::approx_abs (const std::floating_point auto value, const std::floating_point auto epsilon)
 Tests, whether the floating-point target is approximately equal to value.
 
constexpr auto mimicpp::matches::approx_rel (const std::floating_point auto value, const std::floating_point auto relEpsilon)
 Tests, whether the floating-point target is approximately equal to value.
 
template<std::floating_point Float>
constexpr auto mimicpp::matches::approx_rel (const Float value)
 Tests, whether the floating-point target is approximately equal to value.