Boost C++ Libraries: Ticket #363: Perl style foreach iterating https://svn.boost.org/trac10/ticket/363 <pre class="wiki">somewhere in boost, there should be a perl style foreach iterator, like so #define ITERATOR(obj) typeof(obj.begin()) #define foreach(v,i) for(ITERATOR(v) i = v.begin() ; i != v.end() ; i++) genjix at gmail.com </pre> en-us Boost C++ Libraries /htdocs/site/boost.png https://svn.boost.org/trac10/ticket/363 Trac 1.4.3 dprotti Mon, 01 Aug 2005 19:52:47 GMT <link>https://svn.boost.org/trac10/ticket/363#comment:1 </link> <guid isPermaLink="false">https://svn.boost.org/trac10/ticket/363#comment:1</guid> <description> <pre class="wiki">Logged In: YES user_id=1012656 There is something like that. In fact, there is something much better, take a look at this article: http://www.informit.com/articles/article.asp?p=400651 About your submission, it's not a patch, is more like a feature request, so this is not the correct place to post it. Regards, Duilio Protti. </pre> </description> <category>Ticket</category> </item> <item> <dc:creator>Eric Niebler</dc:creator> <pubDate>Mon, 09 Jan 2006 23:01:08 GMT</pubDate> <title>status changed https://svn.boost.org/trac10/ticket/363#comment:2 https://svn.boost.org/trac10/ticket/363#comment:2 <ul> <li><strong>status</strong> <span class="trac-field-old">assigned</span> → <span class="trac-field-new">closed</span> </li> </ul> <pre class="wiki">Logged In: YES user_id=905418 It's called BOOST_FOREACH, and it's already in Boost CVS. It'll be part of 1.34 when it comes out, but you can get it today from the Boost File Vault at http://boost-consulting.com/vault/index.php?&amp;directory=Algorithms </pre> Ticket