From 6831e0c8be02002b8ade9fb93451e4312958c0d8 Mon Sep 17 00:00:00 2001 From: kboyarinov Date: Thu, 2 Nov 2023 18:35:52 +0200 Subject: [PATCH] Add recomendation to use integral types as index for parallel for --- .../source/named_requirements/algorithms/par_for_index.rst | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/elements/oneTBB/source/named_requirements/algorithms/par_for_index.rst b/source/elements/oneTBB/source/named_requirements/algorithms/par_for_index.rst index 93e00464a..bc0ecbe9e 100644 --- a/source/elements/oneTBB/source/named_requirements/algorithms/par_for_index.rst +++ b/source/elements/oneTBB/source/named_requirements/algorithms/par_for_index.rst @@ -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>`