Sequoia
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
sequoia::testing::within_tolerance< ToleranceType > Class Template Reference

Function object for performing comparisons within an absolute tolerance. More...

#include <BinaryRelationships.hpp>

Public Types

using tolerance_type = ToleranceType
 

Public Member Functions

constexpr within_tolerance (ToleranceType tol)
 
constexpr tolerance_type tol () const noexcept
 
template<class T >
requires has_abs<T, ToleranceType>
constexpr bool operator() (const T &obtained, const T &prediction) const noexcept
 

Detailed Description

template<std::totally_ordered ToleranceType>
class sequoia::testing::within_tolerance< ToleranceType >

Function object for performing comparisons within an absolute tolerance.


The documentation for this class was generated from the following file: