Antkeeper  0.0.1
hash-combine.hpp File Reference
#include <cstdint>

Go to the source code of this file.

Functions

constexpr std::uint32_t hash_combine (std::uint32_t x, std::uint32_t y) noexcept
 Combines two hash values. More...
 
constexpr std::uint64_t hash_combine (std::uint64_t x, std::uint64_t y) noexcept
 Combines two hash values. More...
 

Function Documentation

◆ hash_combine() [1/2]

constexpr std::uint32_t hash_combine ( std::uint32_t  x,
std::uint32_t  y 
)
inlineconstexprnoexcept

Combines two hash values.

Parameters
xFirst hash value.
ySecond hash value.
Returns
Combination of x and y.

Definition at line 34 of file hash-combine.hpp.

◆ hash_combine() [2/2]

constexpr std::uint64_t hash_combine ( std::uint64_t  x,
std::uint64_t  y 
)
inlineconstexprnoexcept

Combines two hash values.

Parameters
xFirst hash value.
ySecond hash value.
Returns
Combination of x and y.

Definition at line 40 of file hash-combine.hpp.