title: how to get hash code of a string in c++
body: <p>Following java code returns hash code of a string. </p>
  
  <pre><code>String uri = "Some URI"
  public int hashCode() {
      return uri.hashCode();
  }
  </code></pre>
  
  <p>I want to translate this code to c++. Is there any function availabe in c++ or an easy way to translate this. </p>