Return a hash value calculated from the specified set.

Synopsis

Declared in <ball_managedattributeset.h>

static
int
hash(
    ManagedAttributeSet const& set,
    int size);

Description

Return a hash value calculated from the specified set using the specified size as the number of slots. 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

set

attribute set to hash

size

number of hash slots

Created with MrDocs