Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

3
  • 13
    there is also the new insert_or_assign and try_emplace Commented Jan 27, 2016 at 8:35
  • Isn't function.insert({0, 42}); a Most Vexing Parse case? Commented Oct 21, 2020 at 23:35
  • 3
    No; the Most Vexing Parse is when something you intend to be a variable declaration gets parsed as a function declaration. This can't be parsed as a function declaration, and it's not intended to be a variable declaration anyway, so the MVP isn't an issue. Commented Oct 23, 2020 at 16:11