#include <Guid.h>
Definition at line 280 of file Guid.h.
◆ operator()()
| size_t std::hash< Guid >::operator() |
( |
const Guid & | g | ) |
const |
|
inlinenoexcept |
Definition at line 281 of file Guid.h.
281 {
282
283
284 static_assert(
sizeof(
Guid) == (
sizeof(
unsigned int) +
sizeof(
unsigned short)
285 +
sizeof(
unsigned short) +
sizeof(std::array<unsigned char,8>)));
286 const unsigned char* bytes =
reinterpret_cast<const unsigned char*
>(&
g);
288
289 constexpr size_t fnv_prime = sizeof(size_t) == 8 ? 0x100000001b3ULL : 0x01000193U;
290 constexpr size_t fnv_offset = sizeof(size_t) == 8 ? 0xcbf29ce484222325ULL : 0x811c9dc5U;
292 for (
size_t i = 0;
i <
sizeof(
Guid); ++
i) {
295 }
297 }
std::size_t hash_value(const SystematicSet &)
Hash function specifically for boost::hash.
The documentation for this struct was generated from the following file: