Skip to main content

has_epsilon Concept

C++20 concept satisfied when T provides an epsilon member. More...

Definition

template <class T>
concept micro_os_plus::micro_test_plus::type_traits::has_epsilon = requires (const T& t) { t.epsilon; }

Description

C++20 concept satisfied when T provides an epsilon member.

Template Parameters
T

The type to be checked.

The has_epsilon concept is satisfied when an instance of T exposes an epsilon member. It is used to detect floating point value-wrapper types such as floating_point_constant and the floating point specialisation of value<T>, enabling precision-aware comparisons.

Definition at line 408 of file type-traits.h.

  template<class T>
  concept has_epsilon = requires (const T& t) { t.epsilon; }

Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.