Skip to content

Commit d262146

Browse files
committed
Apply review suggestions
1 parent b13abab commit d262146

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
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: 2 additions & 2 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

0 commit comments

Comments
 (0)