libboost-foreach/1.81.0+1

[full]

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

version 1.81.0+1
license BSL-1.0Boost Software License 1.0
repository https://pkg.cppget.org/1/legacy
download libboost-foreach-1.81.0+1.tar.gz
sha256 b2b39bc602456615a7043743ab6ef4694a18c7bd1c481b0a7790ec63870e4bee
project boost
url github.com/boostorg/foreach
doc-url www.boost.org/doc/libs/1_81_0/libs/foreach
package-url github.com/build2-packaging/boost
package-email packaging@build2.orgMailing list
topics C++Boost

Depends (6)

libboost-config == 1.81.0
libboost-core == 1.81.0
libboost-iterator == 1.81.0
libboost-mpl == 1.81.0
libboost-range == 1.81.0
libboost-type-traits == 1.81.0

Reviews

fail 0
pass 1