Il 31/10/18 11:17, Philippe ha scritto:
and for the rvalue reference case:

for (const auto &c = container; auto &element : c)

Why not using this one for *both* lvalues and rvalues? Once more, one fewer thing to teach.

Cheers,

--
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
http://lists.qt-project.org/mailman/listinfo/development

Reply via email to