[Development] QVector now has rvalue push_back (was: Re: HEADS UP: potential trouble from a recent QVector change)

Lorenz Haas lykurg at gmail.com
Tue Jul 21 10:37:57 CEST 2015


2015-07-20 21:26 GMT+02:00 Thiago Macieira <thiago.macieira at intel.com>:

> Aside from the variadic and the templateness, what's the difference?
>
> The templateness changes how a type different than the vector's type gets
> constructed (it might undergo a conversion first). But assuming I am
> pushing
> back a T, is there any reason I'd want emplace_back? Or vice-versa?
>

Just a side node: Scott Meyer targets push_back/emplace_back in his new
book (item 42)  and gave a talk about it:
https://www.youtube.com/watch?v=smqT9Io_bKo. Due to a tremendous lack of
deeper knowledge no further information from my side :)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20150721/d592d322/attachment.html>


More information about the Development mailing list