use contains instead of exist

This commit is contained in:
hyzboy 2024-10-04 09:43:01 +08:00
parent d286de5b68
commit cfd58d5e1c

View File

@ -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是否在列表中()