If we implement this behaviour.

That's the dilemma that Andrei was talking about. Either solution is valid and
both have a way for you to tell QList to do what you want.
Oh, but it's not a question of "if". It is already done in latest dev this way, 
the shrinking erase, I mean (not sure who was an author of the original change).

--
Best Regards,
Andrei
________________________________
From: Development <development-boun...@qt-project.org> on behalf of Thiago 
Macieira <thiago.macie...@intel.com>
Sent: Thursday, September 10, 2020 5:33 AM
To: development@qt-project.org <development@qt-project.org>
Subject: Re: [Development] Important recent changes in QList/QString/QByteArray

On Wednesday, 9 September 2020 06:38:01 PDT Andrei Golubev wrote:
> > I don't understand what this means. Am I supposed to reserve a
> > container to its current size before erasing elements
> > from it, if I don't want the erase to shrink it?
> Yes.

If we implement this behaviour.

That's the dilemma that Andrei was talking about. Either solution is valid and
both have a way for you to tell QList to do what you want.

--
Thiago Macieira - thiago.macieira (AT) intel.com
  Software Architect - Intel DPG Cloud Engineering



_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development
_______________________________________________
Development mailing list
Development@qt-project.org
https://lists.qt-project.org/listinfo/development

Reply via email to