micro-test-plus 6.0.0
µTest++ Testing Framework
Loading...
Searching...
No Matches
micro_os_plus::micro_test_plus::extension::approx_operand Concept Reference

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

#include <detail.h>

Concept definition

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>
Concept satisfied when T is a valid operand of the approximate comparator.
Definition detail.h:1968

Detailed Description

Template Parameters
TThe 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.