GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Hash.std.string.hpp
Go to the documentation of this file.
1 #ifndef RADIX_UTIL_HASH_STD_STRING_HPP
2 #define RADIX_UTIL_HASH_STD_STRING_HPP
3 
4 #include <string>
5 
6 #include <radix/util/Hash.hpp>
7 
8 namespace radix {
9 
10 constexpr uint32_t Hash32(const std::string &str) {
11  return impl::MurmurHash2(str.data(), str.size(), 0);
12 }
13 
14 } /* namespace radix */
15 
16 #endif /* RADIX_UTIL_HASH_STD_STRING_HPP */
Definition: GameController.hpp:7
constexpr uint32_t Hash32(const char *str)
Definition: Hash.hpp:81