futures::thread_partitioner
Algorithms / Partitioners / thread_partitioner
Defined in header <futures/algorithm/partitioner/thread_partitioner.hpp>
class thread_partitioner;
A partitioner that always splits the problem when moving to new threads.
Description
A partitioner that splits the ranges until it identifies we are not moving to new threads.
This partitioner splits the ranges until it identifies we are not moving to new threads. Apart from that, it behaves as a halve_partitioner, splitting the range up to a minimum grain size.
Public Functions
Member Functions | Description |
---|---|
(constructor) | (function) |
operator() | (function template) |
Public Functions
function thread_partitioner
Defined in header <futures/algorithm/partitioner/thread_partitioner.hpp>
explicit thread_partitioner(std::size_t min_grain_size);
Exception Safety
Basic exception guarantee.
function operator()
Defined in header <futures/algorithm/partitioner/thread_partitioner.hpp>
template <std::input_iterator I, std::sentinel_for< I > S>
I
operator()(I first, S last);
Exception Safety
Basic exception guarantee.
Updated on 2023-01-04