Return a hash value calculated from the specified threshold aggregate using the specified size as the number of slots.
Synopsis
Declared in <ball_thresholdaggregate.h>
static
int
hash(
ThresholdAggregate const& aggregate,
int size);
Description
The hash value is guaranteed to be in the range [0, size ‐ 1]. The behavior is undefined unless 0 < size.
Return Value
hash value in the range [0, size ‐ 1]
Parameters
Name |
Description |
aggregate |
threshold aggregate to hash |
size |
number of hash slots |
Created with MrDocs