Skip to content

Instantly share code, notes, and snippets.

@bluescarni
Last active August 29, 2015 14:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bluescarni/7318053c656223e3247a to your computer and use it in GitHub Desktop.
Save bluescarni/7318053c656223e3247a to your computer and use it in GitHub Desktop.
struct term_comparator
{
template <typename T>
bool operator()(const T &p1, const T &p2) const noexcept
{
return p1.first == p2.first;
}
};
// This is the full definition of the hash set.
piranha::hash_set<std::pair<....>,std::hash<std::pair<....>>,term_comparator>;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment