D24262: Modernize code: use range-based loops & algorithms in more places

Dominik Haumann noreply at phabricator.kde.org
Sat Sep 28 20:58:22 BST 2019


dhaumann added a comment.


  In D24262#539317 <https://phabricator.kde.org/D24262#539317>, @dfaure wrote:
  
  > It's actually quite clear in my head, because I imagine the generated class. A captured variable in a lambda becomes a member variable. If it's a capture by value (which is what happens with [library]), it's a "plain value" member.
  > So
  
  
  David's explanation is much more correct: Behind the scenes you have this Closure trick with a functor object, not really a free function what I was claiming ;)

REPOSITORY
  R306 KParts

REVISION DETAIL
  https://phabricator.kde.org/D24262

To: kossebau, dfaure
Cc: dhaumann, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190928/5f7097f6/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list