not using size_t now (gcc compatibility)
This commit is contained in:
parent
2a08038d04
commit
f7132c2447
|
@ -51,7 +51,7 @@ public:
|
||||||
};
|
};
|
||||||
private:
|
private:
|
||||||
CListEle *head;
|
CListEle *head;
|
||||||
size_t cur_size;
|
int cur_size;
|
||||||
public:
|
public:
|
||||||
CList<T,F>() { head = 0; cur_size = 0; }
|
CList<T,F>() { head = 0; cur_size = 0; }
|
||||||
~CList<T,F>() { clear(); }
|
~CList<T,F>() { clear(); }
|
||||||
|
@ -64,7 +64,7 @@ public:
|
||||||
head = new CListEle( a , head );
|
head = new CListEle( a , head );
|
||||||
++cur_size;
|
++cur_size;
|
||||||
}
|
}
|
||||||
size_t size() {
|
int size() {
|
||||||
return cur_size;
|
return cur_size;
|
||||||
}
|
}
|
||||||
class iterator {
|
class iterator {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user