Skip to content

Commit

Permalink
Add recomendation to use integral types as index for parallel for
Browse files Browse the repository at this point in the history
  • Loading branch information
kboyarinov committed Nov 2, 2023
1 parent cdcea47 commit 6831e0c
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@ A type `Index` satisfies `ParallelForIndex` if it meets the following requiremen
``D`` is the type of the expression ``j-i``. It can be any integral type that is convertible to ``size_t``.
Examples that model the Index requirements are integral types and pointers.

**_NOTE:_** It is recommended to use integral types as ``ParallelForIndex``. See ``[basic.fundamental]``
ISO C++ Standard section for information about integral types.

See also:

* :doc:`parallel_for algorithm <../../algorithms/functions/parallel_for_func>`

0 comments on commit 6831e0c

Please sign in to comment.