Skip to content

C++ TMP implementation of 32-bit Murmur Hash for compile time hashing

Notifications You must be signed in to change notification settings

deniscoady/MurmurHash

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 

Repository files navigation

Murmur Hash TMP Implementation

I created this to use for compile-time hashing of strings. The implementation follows the algorithm originally found at https://en.wikipedia.org/wiki/MurmurHash

Usage

#include <iostream>
#include "murmur.hpp"

int main(int argc, char* argv[]) {
    // calculate hash of string "Hi" at compile time.
    std::uint32_t hi = MurmurHash<'H','i'>::value;
    std::cout << hi << std::endl;

    return 0;
}

License

Released under MIT license.

About

C++ TMP implementation of 32-bit Murmur Hash for compile time hashing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages