blob: 04de79ed65a053edf871c888d679614ace85e0ee (
plain) (
blame)
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
53
54
55
56
57
58
59
60
|
--- lib/python/seqbase_iter.cc.orig Mon Apr 16 12:53:23 2001
+++ lib/python/seqbase_iter.cc Thu Nov 30 22:09:39 2006
@@ -61,7 +61,7 @@
return seqref<T>(*seq, count + i);
}
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator& SeqBase<T>::iterator::operator=(const iterator& other) {
if (this == &other) return *this;
seq = other.seq;
@@ -69,23 +69,23 @@
return *this;
}
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator SeqBase<T>::iterator::operator+(int n) const {
return iterator(seq, count + n);
}
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator SeqBase<T>::iterator::operator-(int n) const {
return iterator(seq, count - n);
}
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator& SeqBase<T>::iterator::operator+=(int n) {
count = count + n;
return *this;
}
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator& SeqBase<T>::iterator::operator-=(int n) {
count = count - n;
return *this;
@@ -99,16 +99,16 @@
}
// prefix ++
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator& SeqBase<T>::iterator::operator++ () { count++; return *this;}
// postfix ++
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator SeqBase<T>::iterator::operator++ (int) { return iterator(seq, count++);}
// prefix --
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator& SeqBase<T>::iterator::operator-- () { count--; return *this;}
// postfix --
- template<class T>
+ template<class T> typename
SeqBase<T>::iterator SeqBase<T>::iterator::operator-- (int) { return iterator(seq, count--);}
template<class T>
|