Il 10/09/20 08:48, Andrei Golubev ha scritto:

    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).

But reallocating on erase still falls under the problem that it invalidates everything, including the part before the erased range.

--
Giuseppe D'Angelo | giuseppe.dang...@kdab.com | Senior Software Engineer
KDAB (France) S.A.S., a KDAB Group company
Tel. France +33 (0)4 90 84 08 53, http://www.kdab.com
KDAB - The Qt, C++ and OpenGL Experts

Attachment: smime.p7s
Description: Firma crittografica S/MIME

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

Reply via email to