» Main »
Boost.Foreach (source code) - A C++ library from Boost.org
Published by David Abrahams
- Overview
This is a Zero Install feed. This software cannot be run as an application directly. It is a library for other programs to use.
For more information about Zero Install, see 0install.net.
- Full name
- Icon
- Homepage
- Description
In C++, writing a loop that iterates over a sequence is tedious. We can either use iterators, which requires a considerable amount of boiler-plate, or we can use the std::for_each() algorithm and move our loop body into a predicate, which requires no less boiler-plate and forces us to move our logic far from where it will be used. In contrast, some other languages, like Perl, provide a dedicated "foreach" construct that automates this process. BOOST_FOREACH is just such a construct for C++. It iterates over sequences for us, freeing us from having to deal directly with iterators or write predicates.
- Available versions
The list below is just for information; Zero Install will automatically select one of these versions for you.
Version Released Stability Platform Download 1.51-post-2012.12.03.0250 2012-12-02 developer *-* Download (39936 bytes) - Required libraries
The list below is just for information; Zero Install will automatically download any required libraries for you.
- http://ryppl.github.com/feeds/boost/mpl-src.xml
- http://ryppl.github.com/feeds/boost/iterator-src.xml
- http://ryppl.github.com/feeds/boost/utility-src.xml
- http://ryppl.github.com/feeds/boost/core-src.xml
- http://ryppl.github.com/feeds/boost/range-src.xml
- http://ryppl.github.com/feeds/boost/config-src.xml
- http://ryppl.github.com/feeds/boost/type_traits-src.xml
- http://ryppl.github.com/feeds/ryppl/ryppl.xml