The halve partitioner always splits the sequence into two parts of roughly equal size.
More...
The halve partitioner always splits the sequence into two parts of roughly equal size.
The sequence is split up to a minimum grain size. As a concept, the result from the partitioner is considered a suggestion for parallelization. For algorithms such as for_each, a partitioner with a very small grain size might be appropriate if the operation is very expensive. Some algorithms, such as a binary search, might naturally adjust this suggestion so that the result makes sense.