olivier at woboq.com
Wed Mar 29 14:53:28 CEST 2017
On Mittwoch, 29. März 2017 13:33:12 CEST Philippe wrote:
> On Wed, 29 Mar 2017 10:39:42 +0200
> Olivier Goffart <olivier at woboq.com> wrote:
> > I don't think we need QArrayList. As you said, it's not often used (only
> > one known use?). and QToolBox is not even using the implicit sharing, so
> > it could easily be ported so std::vector<std::unique_ptr<.>>
> When you need an index-based container, to insert and sort many big
> objects, a QList like container is ideal.
> Easier than std::vector<std::unique_ptr<.>> and with the benefit of cow.
COW does not make much sense for a "QArrayList", as a detach would suddenly
copy all the elements and break the references.
(And QToolBox for example don't share its internal list)
More information about the Development