Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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