Commit 709310e7 by Jonathan Wakely Committed by Jonathan Wakely

Document non-conformance of parallel mode to recent C++ standards

	* doc/xml/manual/parallel_mode.xml: Add caveat about support for
	recent standards.
	* doc/html/*: Regenerate.

From-SVN: r276463
parent c8241327
2019-10-02 Jonathan Wakely <jwakely@redhat.com>
* doc/xml/manual/parallel_mode.xml: Add caveat about support for
recent standards.
* doc/html/*: Regenerate.
2019-10-01 Jonathan Wakely <jwakely@redhat.com> 2019-10-01 Jonathan Wakely <jwakely@redhat.com>
* include/experimental/algorithm (experimental::sample): Qualify call * include/experimental/algorithm (experimental::sample): Qualify call
......
...@@ -13,17 +13,31 @@ ...@@ -13,17 +13,31 @@
<para> The libstdc++ parallel mode is an experimental parallel <para> The libstdc++ parallel mode is an experimental parallel
implementation of many algorithms the C++ Standard Library. implementation of many algorithms of the C++ Standard Library.
</para> </para>
<para> <para>
Several of the standard algorithms, for instance Several of the standard algorithms, for instance
<function>std::sort</function>, are made parallel using OpenMP <function>std::sort</function>, are made parallel using OpenMP
annotations. These parallel mode constructs and can be invoked by annotations. These parallel mode constructs can be invoked by
explicit source declaration or by compiling existing sources with a explicit source declaration or by compiling existing sources with a
specific compiler flag. specific compiler flag.
</para> </para>
<note>
<para>
The parallel mode has not been kept up to date with recent C++ standards
and so it only conforms to the C++03 requirements.
That means that move-only predicates may not work with parallel mode
algorithms, and for C++20 most of the algorithms cannot be used in
<code>constexpr</code> functions.
</para>
<para>
For C++17 and above there are new overloads of the standard algorithms
which take an execution policy argument. You should consider using those
instead of the non-standard parallel mode extensions.
</para>
</note>
<section xml:id="manual.ext.parallel_mode.intro" xreflabel="Intro"><info><title>Intro</title></info> <section xml:id="manual.ext.parallel_mode.intro" xreflabel="Intro"><info><title>Intro</title></info>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment