add isnotnull method to refcntr
This commit is contained in:
parent
c79410da94
commit
706b0122a6
@ -50,6 +50,7 @@ public:
|
|||||||
const X *getconstptr() const {return rep;}
|
const X *getconstptr() const {return rep;}
|
||||||
int getcnt() const {return pcount ? *pcount : 0;}
|
int getcnt() const {return pcount ? *pcount : 0;}
|
||||||
bool isNull() const {return rep == 0;}
|
bool isNull() const {return rep == 0;}
|
||||||
|
bool isNotNull() const {return rep != 0;}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user