Skip to content

Instantly share code, notes, and snippets.

@acmorrow
Created February 5, 2013 19:53
Show Gist options
  • Save acmorrow/4717098 to your computer and use it in GitHub Desktop.
Save acmorrow/4717098 to your computer and use it in GitHub Desktop.
// In C++11, the unordered (a.k.a. hashed) containers are standardized.
#include <unordered_map>
std::unordered_map<std::string, size_t> hits_by_url;
++hits_by_url[query.getUrl()];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment