| 1 |
template <typename LhsType, typename RhsType> |
| 2 |
concept BasicMath = |
| 3 |
requires(LhsType lhs, RhsType rhs) |
| 4 |
{ |
| 5 |
lhs + rhs; // addition must be available |
| 6 |
lhs - rhs; // subtraction must be available |
| 7 |
lhs * rhs; // multiplication must be available |
| 8 |
lhs / rhs; // division must be available |
| 9 |
}; |