POV-Ray : Newsgroups : povray.off-topic : Standard libraries : Re: Standard libraries Server Time
6 Sep 2024 15:20:07 EDT (-0400)
  Re: Standard libraries  
From: Darren New
Date: 7 Mar 2009 00:03:12
Message: <49b20010$1@news.povray.org>
Warp wrote:
>     std::for_each(someList, [&total](int x) { total += x });

And, really, what's the advantage of this over a normal for loop?

-- 
   Darren New, San Diego CA, USA (PST)
   My fortune cookie said, "You will soon be
   unable to read this, even at arm's length."


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.