Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.

Small Documentation Error

superfunc
Beginner
143 Views

In the documentation for parallel_reduce (https://www.threadingbuildingblocks.org/docs/help/reference/algorithms/parallel_reduce_func.htm). There is a typo in the Functor based implementation signature. Body is a non-const reference, as it will be internally modified with the final result of the reduction. 

template<typename Range, typename Body> 
void parallel_reduce( const Range& range, const Body& body
                      [, partitioner[, task_group_context& group]] );

 

should be

template<typename Range, typename Body> 
void parallel_reduce( const Range& range, Body& body
                      [, partitioner[, task_group_context& group]] );

 

Thanks

0 Kudos
1 Reply
RafSchietekat
Black Belt
143 Views

Good catch, but a bit more than a "typo".

0 Kudos
Reply