Skip to main content

approx_operand Concept

Concept satisfied when T is a valid operand of the approximate comparator. More...

Definition​

template <class T>
concept micro_os_plus::micro_test_plus::extension::approx_operand = std::is_arithmetic_v<detail::unwrapped_t<T>>
          and not std::is_same_v<detail::unwrapped_t<T>, bool>
          and not std::is_same_v<detail::unwrapped_t<T>, char>
          and not std::is_same_v<detail::unwrapped_t<T>, wchar_t>
          and not std::is_same_v<detail::unwrapped_t<T>, char8_t>
          and not std::is_same_v<detail::unwrapped_t<T>, char16_t>
          and not std::is_same_v<detail::unwrapped_t<T>, char32_t>

Description​

Concept satisfied when T is a valid operand of the approximate comparator.

Template Parameters
T

The type to be checked, possibly a reference.

The approx_operand concept is satisfied when T, or the value it wraps (for the deprecated value wrappers and the numeric literals), is an arithmetic type other than bool and the character types (char, wchar_t, char8_t, char16_t, and char32_t), which are not numbers; signed char and unsigned char are accepted, as the integer types they are. It constrains approx(); an application helper that forwards its operands to approx() can use it for the same constraint.

Definition at line 1967 of file detail.h.

  template<class T>
  concept approx_operand = std::is_arithmetic_v<detail::unwrapped_t<T>>
  and not std::is_same_v<detail::unwrapped_t<T>, bool>
  and not std::is_same_v<detail::unwrapped_t<T>, char>
  and not std::is_same_v<detail::unwrapped_t<T>, wchar_t>
  and not std::is_same_v<detail::unwrapped_t<T>, char8_t>
  and not std::is_same_v<detail::unwrapped_t<T>, char16_t>
  and not std::is_same_v<detail::unwrapped_t<T>, char32_t>

Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.