| 1 | // -*- C++ -*-cxx . . $ `<file>/vendor/Heap-Layers/utility/hash.h`/ |
| 2 | |
| 3 | #ifndef HL_HASH_H |
| 4 | #define HL_HASH_Hcxx . . $ `vendor/Heap-Layers/utility/hash.h:4:9`! |
| 5 | |
| 6 | #include <cstdlib> |
| 7 | #include <stdlib.h> |
| 8 | |
| 9 | namespace HLcxx . . $ HL/ { |
| 10 | |
| 11 | template <class Key> |
| 12 | class Hashcxx . . $ HL/Hash# { |
| 13 | public: |
| 14 | static size_t hashcxx . . $ HL/Hash#hash(11815c24b85c60f1). (Key k); |
| 15 | }; |
| 16 | |
| 17 | template <> |
| 18 | class Hashcxx . . $ HL/Hash#<size_t> { |
| 19 | public: |
| 20 | static inline size_t hashcxx . . $ HL/Hash#hash(751e5d26f8574c32). (void * v) { |
| 21 | return (size_t) v; |
| 22 | } |
| 23 | }; |
| 24 | |
| 25 | template <> |
| 26 | class Hashcxx . . $ HL/Hash#<void *> { |
| 27 | public: |
| 28 | static inline size_t hashcxx . . $ HL/Hash#hash(751e5d26f8574c32). (void * v) { |
| 29 | return (size_t) ((size_t) v); |
| 30 | } |
| 31 | }; |
| 32 | |
| 33 | template <> |
| 34 | class Hashcxx . . $ HL/Hash#<int> { |
| 35 | public: |
| 36 | static inline size_t hashcxx . . $ HL/Hash#hash(c104ebd7d68b2193). (int v) { |
| 37 | return (size_t) v; |
| 38 | } |
| 39 | }; |
| 40 | |
| 41 | } |
| 42 | |
| 43 | #endif |