feeder#
[algorithms.parallel_for_each.feeder]
Inlet into which additional work items for a parallel_for_each
can be fed.
// Defined in header <oneapi/tbb/parallel_for_each.h>
namespace oneapi {
namespace tbb {
template<typename Item>
class feeder {
public:
void add( const Item& item );
void add( Item&& item );
};
} // namespace tbb
} //namespace oneapi
Member functions#
-
void add(const Item &item)#
Adds item to a collection of work items to be processed.
-
void add(Item &&item)#
Same as the above but uses the move constructor of
Item
, if available.
Caution
Must be called from a Body::operator()
created by the parallel_for_each
function.
Otherwise, the termination semantics of method operator()
are undefined.