29 return prop_current_player;
34 std::lock_guard<std::recursive_mutex> lg{guard};
35 return map.count(key) > 0;
40 std::lock_guard<std::recursive_mutex> lg{guard};
41 auto it = map.find(key);
43 if (it == map.end())
throw std::out_of_range
45 "HashedKeyedPlayerStore::player_for_key: No player known for " + std::to_string(key)
53 std::lock_guard<std::recursive_mutex> lg{guard};
54 for (
const auto& pair : map)
55 enumerator(pair.first, pair.second);
60 std::lock_guard<std::recursive_mutex> lg{guard};
66 std::lock_guard<std::recursive_mutex> lg{guard};
67 auto it = map.find(key);
70 if (prop_current_player == it->second)
71 prop_current_player =
nullptr;
79 std::lock_guard<std::recursive_mutex> lg{guard};