Community
cancel
Showing results for 
Search instead for 
Did you mean: 
superfunc
Beginner
24 Views

Small Documentation Error

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
24 Views

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

Reply