Lumiera 0.pre.04
»edit your freedom«
Loading...
Searching...
No Matches
hash-combine.hpp File Reference

Hash combine function extracted from LibBoost 1.67 Combine two hash values to form a composite depending on both. More...

Go to the source code of this file.

Description

Hash combine function extracted from LibBoost 1.67 Combine two hash values to form a composite depending on both.

Todo:
2024 the Lumiera project has yet to decide how to approach portability of hash values, and the related performance issues. This code was directly integrated into the code base to ensure a stable implementation and reproducible hash values. ///////////////////////////////////////////////////////////////////////////////////////////////////TICKET #722 uniform uses of hash values

Definition in file hash-combine.hpp.

#include "lib/hash-value.h"
#include "lib/integral.hpp"
#include <climits>

Namespaces

namespace  lib
 Implementation namespace for support and library code.
 
namespace  lib::hash
 Hash implementations usable for the HashIndexed mixin as well as key within std::unordered_map.
 

Functions

void combine (size_t &combinedHash, size_t additionalHash)
 meld the additional hash value into the given base hash value.