Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

copy elision when creating object inside emplace()? – stackoverflow.com

Tags: object emplace

I see a lot of code at work where people use Emplace and emplace_back with a temporary Object, like this: struct A { A::A(int, int); }; vector v; vector.emplace_back(A(1,2)); ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot



This post first appeared on ONLINE WEB TRICKS, please read the originial post: here

Share the post

copy elision when creating object inside emplace()? – stackoverflow.com

×

Subscribe to Online Web Tricks

Get updates delivered right to your inbox!

Thank you for your subscription

×