Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
boost/range.hpp
✓ #include <boost/range.hpp>
Use Boost.Range adaptors to filter even numbers
#include <boost/range/adaptors.hpp>
#include <vector>
#include <iostream>
int main() {
std::vector<int> v = {1,2,3,4,5};
for (int x : v | boost::adaptors::filtered([](int i){ return i%2==0; }))
std::cout << x << " ";
return 0;
}
Debug
Known issues
No known issues recorded.
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.