2015-07-20 21:26 GMT+02:00 Thiago Macieira <thiago.macie...@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 :)
_______________________________________________ Development mailing list Development@qt-project.org http://lists.qt-project.org/mailman/listinfo/development