1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
|
--- class/LKV/List.h 3 Nov 2004 06:57:51 -0000 1.1
+++ class/LKV/List.h 20 Feb 2006 11:08:10 -0000
@@ -12,6 +12,8 @@
#include "AllocBuf.h"
+#include "Bstream.h"
+
class ostream;
template <class T>
@@ -35,13 +37,13 @@
ListItem( void ) : T()
#ifdef DEBUG
, next((ListItem *)0), prev((ListItem *)0)
-#endif DEBUG
+#endif /* DEBUG */
{ };
ListItem( const T & val ) : T(val)
#ifdef DEBUG
, next((ListItem *)0), prev((ListItem *)0)
-#endif DEBUG
+#endif /* DEBUG */
{ };
ListItem * get_next(void) const {
@@ -59,6 +61,9 @@
template <class T>
+BIstream & operator>> (BIstream & in, List<T> & list);
+
+template <class T>
class List {
protected:
@@ -239,7 +244,7 @@
return last;
};
- friend BIstream & operator>> (BIstream & in, List<T> & list);
+ friend BIstream & operator>><> (BIstream & in, List<T> & list);
};
template <class T>
@@ -306,4 +311,4 @@
}
-#endif List_h
+#endif /* List_h */
|