diff options
Diffstat (limited to '')
| -rw-r--r-- | src/hash.h | 9 |
1 files changed, 9 insertions, 0 deletions
| @@ -215,6 +215,15 @@ public: | |||
| 215 | } | 215 | } |
| 216 | } | 216 | } |
| 217 | 217 | ||
| 218 | bool has( key k ) | ||
| 219 | { | ||
| 220 | uint32_t hash = __calcHashCode( k ); | ||
| 221 | bool bFill; | ||
| 222 | uint32_t nPos = probe( hash, k, bFill ); | ||
| 223 | |||
| 224 | return bFill; | ||
| 225 | } | ||
| 226 | |||
| 218 | typedef struct iterator | 227 | typedef struct iterator |
| 219 | { | 228 | { |
| 220 | friend class Hash<key, value, sizecalc, keyalloc, valuealloc, challoc>; | 229 | friend class Hash<key, value, sizecalc, keyalloc, valuealloc, challoc>; |
