
@ChShersh They’re both bad. The one on the left is exception safe at least.
In the likely case that nullptr is an invalid value in the map, you should try_emplace nullptr, if the emplace succeeds you replace it with the new node (recover from exception here). Don’t call find/hash twice.
English



















