b

boost_foreach

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.
https://www.boost.org/
Distributed under the Boost Software License, Version 1.0.
Eric Niebler
Files download
File Operation
boost_foreach-1.81.0.pom download
Apache Maven
<dependency>
  <groupId>com.github.brunotl</groupId>
  <artifactId>boost_foreach</artifactId>
  <version>1.81.0</version>
  <type>aar</type>
</dependency>
Gradle Groovy
implementation 'com.github.brunotl:boost_foreach:1.81.0'
Gradle Kotlin
implementation("com.github.brunotl:boost_foreach:1.81.0")
Scala SBT
libraryDependencies += "com.github.brunotl" % "boost_foreach" % "1.81.0"
Groovy Grape
@Grapes(
  @Grab(group='com.github.brunotl', module='boost_foreach', version='1.81.0')
)
Apache Ivy
<dependency org="com.github.brunotl" name="boost_foreach" rev="1.81.0" />
Leiningen
[com.github.brunotl/boost_foreach "1.81.0"]
Apache Buildr
'com.github.brunotl:boost_foreach:jar:1.81.0'