| 220 | |
| 221 | template<class T, int HashCount> |
| 222 | typename CNetBan::CBan<T> *CNetBan::CBanPool<T, HashCount>::Get(int Index) const |
| 223 | { |
| 224 | if(Index < 0 || Index >= Num()) |
| 225 | return 0; |
| 226 | |
| 227 | for(CNetBan::CBan<T> *pBan = m_pFirstUsed; pBan; pBan = pBan->m_pNext, --Index) |
| 228 | { |
| 229 | if(Index == 0) |
| 230 | return pBan; |
| 231 | } |
| 232 | |
| 233 | return 0; |
| 234 | } |
| 235 | |
| 236 | |
| 237 | template<class T> |