Ietor
Skip to content

jodleif/strhashliteral

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 

Repository files navigation

strhashliteral

Compile time string hash literals

Main purpose:

#include "strhashliteral.h"
int main()
{
  using namespace hash::literals;
  std::string ex1 = "Hello";
  switch(hash::fnv_64_hash(ex1.c_str()) {
  case "Hello"_f64:
    // Do something interesting
    default:
    // ..
  }
  return 0;
}

About

Compile time string hash literals

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages