Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <unordered_map>
- #include <string>
- enum Bubu{
- BUBU1,
- BUBU2
- };
- struct BubuHasher{
- size_t operator() (Bubu a) const
- {
- return static_cast<size_t>(a);
- }
- };
- static const std::unordered_map<Bubu, std::string, BubuHasher> bubu = { {Bubu::BUBU1, "2"}, {Bubu::BUBU2, "4"}};
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement