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.
rivers/rivers.hpp
✓ #include <rivers/rivers.hpp>
Using rivers to filter and map a vector
#include <rivers/rivers.hpp>
#include <iostream>
#include <vector>
int main() {
std::vector<int> v = {1, 2, 3, 4, 5};
auto result = rivers::from(v)
.filter([](int x) { return x % 2 == 0; })
.map([](int x) { return x * 2; })
.to_vector();
for (int x : result) std::cout << x << " ";
return 0;
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
2022-05-16latest on vcpkg
Audit
Dependencies
No dependency data recorded yet.
Resources
No resource links recorded.