On 02/09/2020 21:18, Andrei Golubev wrote:
Also not sure whether it is an implementation detail or the behavior that should always be anticipated.

People build performance sensitive code assuming the cost of certain operations -- like, assuming that erasing elements from a vector never reallocates it; and that the only operation that sheds capacity is squeeze(), everything else (incl. clear(), incl. resize(0)) keeps the capacity (*). We should stop backstabbing them...


(*) Which of course opens an interesting discussion in case of these operations detach


Thanks,
--
Giuseppe D'Angelo | [email protected] | 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: S/MIME Cryptographic Signature

_______________________________________________
Development mailing list
[email protected]
https://lists.qt-project.org/listinfo/development

Reply via email to