QHash<int, Client*> Users;Client *_client = new Client(var);Users.insert(num, _client);
Users.erase(Users.find(num));
Users.erase(Users.find(num));delete _client;
std::unordered_map<int, std::unique_ptr<Client>> Users;auto client = std::make_unique<Client>();Users.insert({num, std::move(client));Users.erase(Users.find(num));