File tree Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Expand file tree Collapse file tree 1 file changed +21
-9
lines changed Original file line number Diff line number Diff line change 1
1
#ifndef COMMON_HPP
2
2
#define COMMON_HPP
3
3
4
- namespace AI
5
- {
4
+ # include < iostream >
5
+ # include < tuple >
6
6
7
- namespace Private
8
- {
7
+ using std::cout;
8
+ using std::endl;
9
+ using std::get;
10
+ using std::tuple;
11
+ using std::ostream;
9
12
10
- template < typename T>
11
- struct NodePtrCompare : std::less<T>
13
+
14
+ namespace AI
12
15
{
13
- bool operator ()(const T &lhs, const T &rhs) const
14
- { return lhs->getState () < rhs->getState (); }
15
- };
16
16
17
17
template <typename T, int I>
18
18
struct TuplePrint
@@ -66,6 +66,18 @@ void showRoute(const R & node )
66
66
cout << endl;
67
67
}
68
68
69
+
70
+ namespace Private
71
+ {
72
+
73
+ template <typename T>
74
+ struct NodePtrCompare : std::less<T>
75
+ {
76
+ bool operator ()(const T &lhs, const T &rhs) const
77
+ { return lhs->getState () < rhs->getState (); }
78
+ };
79
+
80
+
69
81
} // endnamespace Private
70
82
71
83
} // endnamespace AI
You can’t perform that action at this time.
0 commit comments