Skip to content

Instantly share code, notes, and snippets.

@deque-blog
Created April 9, 2017 19:13
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save deque-blog/94c16cae74bf3859df4cbe0084d35a9f to your computer and use it in GitHub Desktop.
size_t operator()(rgb_color const& c) const
{
auto as_tuple = std::tie(c.m_red, c.m_green, c.m_blue);
return std::hash<decltype(as_tuple)>()(as_tuple);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment