Talk:cpp/container/map/emplace hint

The return type for emplace_hint is incorrect. And the fact that something will not be inserted if it already exists is missing. I attempted to edit in a correction, but was unable to. But I'm a rank beginner on this site.
 * Good catch, and yes, editing these templates can be a bit difficult. --Cubbi 18:56, 29 August 2012 (PDT)

There is no a word of exception safety. 195.16.110.88 04:27, 13 April 2016 (PDT)
 * added, thanks. --Cubbi (talk) 05:36, 13 April 2016 (PDT)

If the hint is correct, is fast
Here's an example (link). (If you change the code by uncommenting, you can see what happens if the hint is wrong.)

Fdklsa (talk) 01:07, 17 January 2017 (PST)
 * It may be better to show when hints are used in code rather than test whether the standard library implements them. For example, I've seen hinted inserts used was for bulk appends of already-sorted sequences (so the hint was simply the end iterator). I could imagine it would be useful for bulk-inserting a sorted sequence in the middle too. Also, the example could use less verbosity, like the microbenchmark on std --Cubbi (talk)