Skip to content

Commit dfa3e02

Browse files
committed
Apply review suggestions
1 parent b13abab commit dfa3e02

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

source/elements/oneTBB/source/named_requirements.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ because C++ does not permit implicit removal of the ``const`` qualifier from a t
6262
would not compile if the implementation attempts to pass a constant object to the function.
6363

6464
Besides pseudo-signatures, semantic requirements also need to be met by real types and functions.
65-
For example, while ``std::pair<U,U> swap(U x, U y)`` fits the pseudo-signature for *Sortable*
65+
For example, while ``std::pair<U, U> swap(U x, U y)`` fits the pseudo-signature for *Sortable*
6666
via implicit conversion of references to values and implicit drop of the returned value
6767
(ignored by a library implementation), it is unable to swap the actual variables passed to the function
6868
and therefore does not meet the semantic requirements of *Sortable*.

source/elements/oneTBB/source/named_requirements/algorithms/par_for_each_body.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,15 @@ as well as it meets exactly one of the following two requirements for ``operator
1515

1616
**ParallelForEachBody Requirements: Pseudo-Signature, Semantics**
1717

18-
Variant 1:
18+
Alternative 1:
1919

2020
.. cpp:function:: void Body::operator()( ReferenceType item ) const
2121

2222
Process the received item.
2323

2424
----------------------------------------------------------------
2525

26-
Variant 2:
26+
Alternative 2:
2727

2828
.. cpp:function:: void Body::operator()( ReferenceType item, oneapi::tbb::feeder<ItemType>& feeder ) const
2929
void Body::operator()( ItemType&& item, oneapi::tbb::feeder<ItemType>& feeder ) const
@@ -44,8 +44,7 @@ where
4444
.. note::
4545

4646
The usual rules for :ref:`pseudo-signatures <pseudo_signatures>` apply.
47-
Therefore, ``Body::operator()`` may optionally take items by value.
48-
``const`` and ``volatile`` type qualifiers are also applicable.
47+
Therefore, ``Body::operator()`` may optionally take items by value or by ``const`` reference.
4948

5049
See also:
5150

0 commit comments

Comments
 (0)