File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed
source/elements/oneTBB/source/named_requirements/algorithms Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 55==================
66ParallelReduceFunc
77==================
8- **[req.parallel_reduce_body ] **
8+ **[req.parallel_reduce_func ] **
99
1010A type `Func ` satisfies `ParallelReduceFunc ` if it meets the following requirements:
1111
1212-----------------------------------------------------------------------------------------------------
1313
1414**ParallelReduceFunc Requirements: Pseudo-Signature, Semantics **
1515
16- .. cpp :function :: Value Func::operator ()(const Range& range, const Value& x) const
16+ .. cpp :function :: Value Func::operator ()(const Range& range, Value& & x) const
1717
18- Accumulates result for a subrange, starting with initial value ``x ``.
19- ``Range `` type must meet the :doc: `Range requirements <range >`.
20- ``Value `` type must be the same as a corresponding template parameter for the
21- :doc: `parallel_reduce algorithm <../../algorithms/functions/parallel_reduce_func >` algorithm .
18+ Accumulates values over a subrange, starting with the initial value ``x ``.
19+ The ``Range `` type must meet the :doc: `Range requirements <range >`.
20+ The ``Value `` type must be the same as the corresponding template parameter for the
21+ :doc: `parallel_reduce algorithm <../../algorithms/functions/parallel_reduce_func >`.
2222
2323See also:
2424
Original file line number Diff line number Diff line change @@ -13,11 +13,11 @@ A type `Reduction` satisfies `ParallelReduceReduction` if it meets the following
1313
1414**ParallelReduceReduction Requirements: Pseudo-Signature, Semantics **
1515
16- .. cpp :function :: Value Reduction::operator ()(const Value& x, const Value& y) const
16+ .. cpp :function :: Value Reduction::operator ()(Value&& x, Value& & y) const
1717
18- Combines results ``x `` and ``y ``.
19- ``Value `` type must be the same as a corresponding template parameter for the
20- :doc: `parallel_reduce algorithm <../../algorithms/functions/parallel_reduce_func >` algorithm .
18+ Combines the results ``x `` and ``y ``.
19+ The ``Value `` type must be the same as the corresponding template parameter for the
20+ :doc: `parallel_reduce algorithm <../../algorithms/functions/parallel_reduce_func >`.
2121
2222See also:
2323
You can’t perform that action at this time.
0 commit comments