mirror of
https://github.com/alliedmodders/amxmodx.git
synced 2024-12-25 14:25:38 +03:00
use of const functions
This commit is contained in:
parent
90f777d593
commit
7c4324b963
@ -59,13 +59,13 @@ public:
|
|||||||
iterator a = begin();
|
iterator a = begin();
|
||||||
while( a ) a.remove();
|
while( a ) a.remove();
|
||||||
}
|
}
|
||||||
bool empty() {
|
bool empty() const{
|
||||||
return (head ? false : true);
|
return (head ? false : true);
|
||||||
}
|
}
|
||||||
void put( T* a ) {
|
void put( T* a ) {
|
||||||
head = new CListEle( a , head );
|
head = new CListEle( a , head );
|
||||||
}
|
}
|
||||||
int size() {
|
int size() const{
|
||||||
CListEle *p = head;
|
CListEle *p = head;
|
||||||
int i = 0;
|
int i = 0;
|
||||||
while (p)
|
while (p)
|
||||||
|
Loading…
Reference in New Issue
Block a user