[Development] QVector now has rvalue push_back

Marc Mutz marc.mutz at kdab.com
Wed Jul 22 11:50:38 CEST 2015


On Wednesday 22 July 2015 10:32:21 Gunnar Roth wrote:
> so Am i wrong or not? By saying: " i don’t think there is any difference
> between push_back(QPen(Qt::red,1.5f)) and emplace_back(Qt::red,1,5f))"
> with this implemention.

With that implementation, there's no difference iff emplace_back is always 
inlined.

-- 
Marc Mutz <marc.mutz at kdab.com> | Senior Software Engineer
KDAB (Deutschland) GmbH & Co.KG, a KDAB Group Company
Tel: +49-30-521325470
KDAB - The Qt Experts



More information about the Development mailing list