Intel® oneAPI Threading Building Blocks
Ask questions and share information about adding parallelism to your applications when using this threading library.
Announcements
This community is designed for sharing of public information. Please do not share Intel or third-party confidential information here.

Small Documentation Error

superfunc
Beginner
79 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
79 Views

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

Reply