Skip to main content

function_pointer_pair Concept

Concept satisfied by two pointers, one of which points to a function. More...

Definition​

template <class Lhs_T, class Rhs_T>
concept micro_os_plus::micro_test_plus::detail::function_pointer_pair = std::is_pointer_v<Lhs_T> and std::is_pointer_v<Rhs_T>
          and (std::is_function_v<std::remove_pointer_t<Lhs_T>>
               or std::is_function_v<std::remove_pointer_t<Rhs_T>>)

Description​

Concept satisfied by two pointers, one of which points to a function.

The comparison of a function pointer with an object pointer, such as a void*, is an extension of the compilers, accepted with a warning, which the library silences, but not by the checks of the concepts that follow; the comparators keep accepting it.

Template Parameters
Lhs_T

The type of the left hand side operand.

Rhs_T

The type of the right hand side operand.

Definition at line 402 of file detail-inlines.h.

  template<class Lhs_T, class Rhs_T>
  concept function_pointer_pair = std::is_pointer_v<Lhs_T> and std::is_pointer_v<Rhs_T>
  and (std::is_function_v<std::remove_pointer_t<Lhs_T>>
  or std::is_function_v<std::remove_pointer_t<Rhs_T>>)

Generated via doxygen2docusaurus 2.2.8 by Doxygen 1.18.0.