Zero Install Mirror

» Main » Boost.Foreach (development files)

Boost.Foreach (development files) - A C++ library from

Published by David Abrahams


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

Full name




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.

1.51-post-2012.12.03.02502012-12-02developerSource codeDownload (39936 bytes)
Required libraries

This feed does not list any additional requirements.