Skip to content

hash(combine:_:)

ctreffs edited this page Oct 7, 2020 · 4 revisions

hash(combine:_:)

Calculates the combined hash of two values. This implementation is based on boost:​:​hash_combine. Will always produce the same result for the same combination of seed and value during the single run of a program.

public func hash(combine seed: Int, _ value: Int) -> Int

Parameters

  • seed: seed hash.
  • value: value to be combined with seed hash.

Returns

combined hash value.

Clone this wiki locally