I\'ve got a value type that I want put into a map. It has a nice default copy constructor, but does not have a default constructor.
I believe that so long as I stay
You could first get the position to insert the pair with lower_bound, then check if it's already there, and if not, insert it, providing the iterator where to insert. Something along those lines.
lower_bound