Remove unnecessary copy in sorted_vector_types insert with hint
Summary: When inserting an item with a hint, the item will be always copied, even if it is already present in the map. This could cause an exception to be thrown when it doesn't need to be. The standard doesn't require this, but it is an optimization anyways. Reviewed By: yfeldblum Differential Revision: D16585971 fbshipit-source-id: f0a8eeb0bd86f07ef110f91cbef8ab422ff55480
Showing
Please register or sign in to comment