use of const functions

This commit is contained in:
Pavol Marko 2004-05-05 18:41:36 +00:00
parent 90f777d593
commit 7c4324b963

View File

@ -59,13 +59,13 @@ public:
iterator a = begin();
while( a ) a.remove();
}
bool empty() {
bool empty() const{
return (head ? false : true);
}
void put( T* a ) {
head = new CListEle( a , head );
}
int size() {
int size() const{
CListEle *p = head;
int i = 0;
while (p)