HashCode.h 599 B

12345678910111213141516171819202122232425
  1. #ifndef CORE_HASH_CODE_H
  2. #define CORE_HASH_CODE_H
  3. #include "utils/Utility.h"
  4. namespace Core {
  5. template<typename H>
  6. u32 hashCode(const H& key) {
  7. return key.hashCode();
  8. }
  9. u32 hashCode(char key);
  10. u32 hashCode(signed char key);
  11. u32 hashCode(signed short key);
  12. u32 hashCode(signed int key);
  13. u32 hashCode(signed long key);
  14. u32 hashCode(signed long long key);
  15. u32 hashCode(unsigned char key);
  16. u32 hashCode(unsigned short key);
  17. u32 hashCode(unsigned int key);
  18. u32 hashCode(unsigned long key);
  19. u32 hashCode(unsigned long long key);
  20. }
  21. #endif