We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dca2b87 commit 787d129Copy full SHA for 787d129
include/attwoodn/expression_tree.hpp
@@ -3,6 +3,38 @@
3
#include <iostream>
4
5
namespace attwoodn::expression_tree {
6
+
7
+ namespace op {
8
9
+ template<typename A, typename B>
10
+ class less_than {
11
+ bool operator()(A a, B b) {
12
+ return a < b;
13
+ }
14
+ };
15
16
17
+ class greater_than {
18
19
+ return a > b;
20
21
22
23
24
+ class equals {
25
26
+ return a == b;
27
28
29
30
31
+ class not_equals {
32
33
+ return a != b;
34
35
36
37
38
static inline void say_hello() {
39
std::cout << "hello world!" << std::endl;
40
}
0 commit comments