I have a unordered map with an enum in key and a shared_ptr in content.
When I initialize my map, I use emplace like this :
this->_menu.emplace(BINDINGS, std::shared_ptr<AMenu>(new BindingMenu("Player 1"));
But I would like to know if I can replace (at the same place), with another BindingMenu object :
std::shared_ptr<AMenu>(new BindingMenu("Player 2")
Thanks