Created
April 9, 2017 19:13
-
-
Save deque-blog/94c16cae74bf3859df4cbe0084d35a9f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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