[Solved] Find an enum inside unordered_map and get its value? [closed]


KeyState value = keys[key];
return value == KeyState::Up || value == KeyState::Down;

Of course, those are the only two values you have defined for KeyState, so, as it stands…

return true;

2

solved Find an enum inside unordered_map and get its value? [closed]