Struct equal_eps

Struct Documentation

struct fwdpp::equal_eps

Public Types

using result_type = bool

Returns true if max(lhs,rhs)-min(lhs,rhs) <= std::numeric_limits<T>::epsilon() Returns true if max(lhs,rhs)-min(lhs,rhs) <= numeric_limits<T>::epsilon()

Public Functions

template<typename T>
bool operator()(const T &lhs, const T &rhs) const