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

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<A> v; vector<A>.emplace_back(A(1,2)); ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "copy elision when creating object inside emplace()? – stackoverflow.com"