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.

2
  • 2
    I'd disagree with your "can't insert an aggregate without copying" statement in last paragraph of your answer. You can always do the following: v.emplace_back(); v.back().foo = 41; v.back().bar = 42;
    – PowerGamer
    Commented Jul 26, 2014 at 11:50
  • 1
    @PowerGamer That is, if the aggregate is default constructible. But yes, that's a great point for your to add. (I haven't really realized it until now that you've pointed it out, thanks for that) Commented Jul 28, 2014 at 1:59