File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -9,10 +9,8 @@ public :
9
9
10
10
bool operator ()(const T &left, const T &right){
11
11
Less<T> less;
12
- // nicht kleiner && nicht gleich
13
12
bool lesser = less (left, right);
14
13
bool equal = !less (left, right) && !less (right,left);
15
-
16
14
return !lesser && !equal;
17
15
}
18
16
Original file line number Diff line number Diff line change @@ -86,13 +86,17 @@ int testTemplates(void)
86
86
assert ( greaterInt (3 ,4 ) == 0 );
87
87
assert ( greaterInt (3 ,3 ) == 0 );
88
88
89
+ Greater<string> greaterString;
90
+ cout << " Hallo > Welt == " << greaterString (" Hallo" ," Welt" ) << endl;
89
91
90
- #if 0 // move this line down while your implementation proceeds...
91
92
// ///////////////////////////////////////
92
93
// TEST PAIR ORDER
93
94
MapToFirst< int , float , Less > lessPair;
94
95
cout << i_f << " < " << i_f2 << " == " << lessPair (i_f, i_f2) << endl;
95
96
97
+ #if 0 // move this line down while your implementation proceeds...
98
+
99
+
96
100
/////////////////////////////////////////
97
101
// TEST TREE
98
102
You can’t perform that action at this time.
0 commit comments