has_epsilon Concept
Deprecated concept satisfied when T is a framework floating-point wrapper with a tolerance. More...
Definition
concept micro_os_plus::micro_test_plus::extension::has_epsilon = is_op<T> and requires (const T& t) { t.epsilon; }
Description
Deprecated concept satisfied when T is a framework floating-point wrapper with a tolerance.
- Template Parameters
-
T The type to be checked.
The has_epsilon concept is satisfied when T is a framework expression type (see is_op) with an epsilon member, like floating_point_constant and the floating-point specialisation of value<T>. The comparators treat the operands within this tolerance as equal; a custom comparator uses it to do the same.
The types of the application are excluded, even if they have a member named epsilon, so that they are compared with their own operators.
Only the deprecated floating-point wrappers have a tolerance, so the concept is deprecated with them, and is available only when MICRO_OS_PLUS_MICRO_TEST_PLUS_DEPRECATED_ENABLED is defined.
- Deprecated
-
to be removed with the deprecated floating-point wrappers (since 6.0.0)
Definition at line 349 of file extension.h.
Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.