use contains instead of exist
This commit is contained in:
parent
d286de5b68
commit
cfd58d5e1c
@ -74,12 +74,12 @@ namespace hgl
|
||||
/**
|
||||
* 确定指定key是否在活跃列表
|
||||
*/
|
||||
bool KeyExistActive(const K &key)const{return active_items.ContainsKey(key);}
|
||||
bool ContainsActiveKey(const K &key)const{return active_items.ContainsKey(key);}
|
||||
|
||||
/**
|
||||
* 确定指定key是否在闲置列表
|
||||
*/
|
||||
bool KeyExistIdle(const K &key)const{return idle_items.ContainsKey(key);}
|
||||
bool ContainsIdleKey(const K &key)const{return idle_items.ContainsKey(key);}
|
||||
|
||||
/**
|
||||
* 确定指定key是否在列表中(包括活跃列表和闲置列表)
|
||||
|
Loading…
x
Reference in New Issue
Block a user