[Development] QList

Marc Mutz marc.mutz at kdab.com
Wed Mar 29 14:33:19 CEST 2017


On Wednesday 29 March 2017 14:20:42 Giuseppe D'Angelo wrote:
> Il 29/03/2017 13:27, Marc Mutz ha scritto:
> > On Wednesday 29 March 2017 11:37:57 Ville Voutilainen wrote:
> >> Let me take a step back. Do we need a list container that is always
> >> indirect regardless of
> >> the element type and uses implicit sharing?
> > 
> > We have that: it's called QLinkedList.
> 
> Or, fixing QVector so that QVector<unique_ptr<T>> becomes supported.

A QVector that supports move-only type ceases to be CoW, because its copy ctor 
will be disabled.

Thanks,
Marc

-- 
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, C++ and OpenGL Experts



More information about the Development mailing list