AUI Framework  master
Cross-platform module-based framework for developing C++20 desktop applications
Typical

Distributes iterator range over machine's threads. I.e. range of 32 elements on a 4-core machine would be split by 4 pieces of 8 elements.

Template Parameters
Iteratoriterator type. Must implement operator-
Parameters
beginbegin iterator
enden iterator
functorcallback. ReturnType(Iterator begin, Iterator end);
Returns
AFutureSet<ReturnType>, where ReturnType is a return type of functor usage:
AVector<int> container = { ... };
aui::parallel(container.begin(),
container.end(),
[](const AVector<int>::iterator& begin,
const AVector<int>::iterator& end) {
for (auto it = begin; it != end; ++it) {
// *it
}
};
A std::vector with AUI extensions.
Definition: AVector.h:38
See also
AUI_PARALLEL_MP