Skip to main content

any_op Concept

C++20 concept satisfied when at least one of two types derives from op. More...

Definition

template <class Lhs_T, class Rhs_T>
concept micro_os_plus::micro_test_plus::type_traits::any_op = is_op<Lhs_T> or is_op<Rhs_T>

Description

C++20 concept satisfied when at least one of two types derives from op.

Template Parameters
Lhs_T

The type of the left-hand operand.

Rhs_T

The type of the right-hand operand.

The any_op concept is satisfied when Lhs_T or Rhs_T (or both) are derived from the type_traits::op base struct. It is used to constrain binary operator overloads in the operators namespace so that they are enabled only when at least one operand is a framework type, avoiding unintended conflicts with user-defined operators.

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

  template<class Lhs_T, class Rhs_T>
  concept any_op = is_op<Lhs_T> or is_op<Rhs_T>

Generated via doxygen2docusaurus 2.2.0 by Doxygen 1.17.0.