Created
January 5, 2013 20:35
-
-
Save anonymous/4463518 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
struct pair_hash { | |
std::size_t operator()(std::pair<std::size_t, std::string> const& x) const { | |
return x.first; | |
} | |
}; | |
struct pair_comp { | |
bool operator()(std::pair<std::size_t, std::string> const& x, std::pair<std::size_t, std::string> const& y) const { | |
return x.second = y.second; | |
} | |
}; | |
using member_table = std::unordered_map<std::pair<std::size_t, std::string>, object*, pair_hash, pair_comp>; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment