Under what circumstances will set emplace fail?

I emplace a new custom class in the set container, in which there is a custom comparison function to sort, and then add two elements An and B in the container. I delete B, change the value of B, and re-emplace B, but validating the returned value will find that the insertion failed.

CPP
May.08,2022
Menu