Skip to content

Commit ef1e07e

Browse files
committed
Eliminate [parallel.execpol.dynamic]
1 parent 968b2e9 commit ef1e07e

File tree

1 file changed

+0
-94
lines changed

1 file changed

+0
-94
lines changed

execution_policies.html

Lines changed: 0 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -58,100 +58,6 @@ <h1>Vector execution policy</h1>
5858

5959
</cxx-section>
6060

61-
<del><cxx-section id="parallel.execpol.dynamic"></del>
62-
<del>
63-
<h1>Dynamic execution policy</h1>
64-
65-
<pre>
66-
class execution_policy
67-
{
68-
public:
69-
<cxx-ref insynopsis="" to="parallel.execpol.con"></cxx-ref>
70-
template&lt;class T&gt; execution_policy(const T&amp; exec);
71-
template&lt;class T&gt; execution_policy&amp; operator=(const T&amp; exec);
72-
73-
<cxx-ref insynopsis="" to="parallel.execpol.access"></cxx-ref>
74-
const type_info&amp; type() const noexcept;
75-
template&lt;class T&gt; T* get() noexcept;
76-
template&lt;class T&gt; const T* get() const noexcept;
77-
};
78-
</pre>
79-
80-
<p>The class <code>execution_policy</code> is a container for execution policy objects.
81-
<code>execution_policy</code> allows dynamic control over standard algorithm execution.</p>
82-
83-
<cxx-example>
84-
<pre>std::vector&lt;float&gt; sort_me = ...
85-
86-
using namespace std::experimental::parallel;
87-
execution_policy exec = seq;
88-
89-
if(sort_me.size() &gt; threshold)
90-
{
91-
exec = std::par;
92-
}
93-
94-
std::sort(exec, std::begin(sort_me), std::end(sort_me));</pre>
95-
</cxx-example>
96-
97-
<p>Objects of type <code>execution_policy</code> shall be constructible and assignable from objects of
98-
type <code>T</code> for which <code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.</p>
99-
100-
</del>
101-
<cxx-section id="parallel.execpol.con">
102-
<h1><del><code>execution_policy</code> construct/assign</del></h1>
103-
104-
<cxx-function>
105-
<del><cxx-signature>template&lt;class T&gt; execution_policy(const T&amp; exec);</cxx-signature></del>
106-
107-
<del><cxx-effects><del>Constructs an <code>execution_policy</code> object with a copy of <code>exec</code>'s state.</del></cxx-effects></del>
108-
109-
<del>
110-
<cxx-remarks>
111-
<del>
112-
This constructor shall not participate in overload resolution unless
113-
<code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.
114-
</del>
115-
</cxx-remarks>
116-
</del>
117-
</cxx-function>
118-
119-
<cxx-function>
120-
<del>
121-
<cxx-signature><del>template&lt;class T&gt; execution_policy&amp; operator=(const T&amp; exec);</del></cxx-signature>
122-
123-
<cxx-effects><del>Assigns a copy of <code>exec</code>'s state to <code>*this</code>.</del></cxx-effects>
124-
125-
<cxx-returns><del><code>*this</del></code>.
126-
</del>
127-
</cxx-function>
128-
</cxx-section>
129-
130-
<cxx-section id="parallel.execpol.access">
131-
<h1><del><code>execution_policy</code> object access</del></h1>
132-
133-
<cxx-function>
134-
<del><cxx-signature><del>const type_info&amp; type() const noexcept;</del></cxx-signature></del>
135-
136-
<del><cxx-returns><del><code>typeid(T)</code>, such that <code>T</code> is the type of the execution policy object contained by <code>*this</code>.</del></cxx-returns></del>
137-
</cxx-function>
138-
139-
<cxx-function>
140-
<del><cxx-signature><del>template&lt;class T&gt; T* get() noexcept;</del></cxx-signature></del>
141-
<del><cxx-signature><del>template&lt;class T&gt; const T* get() const noexcept;</del></cxx-signature></del>
142-
143-
<del><cxx-returns><del>If <code>target_type() == typeid(T)</code>, a pointer to the stored execution policy object; otherwise a null pointer.</del></cxx-returns></del>
144-
145-
<del>
146-
<cxx-requires>
147-
<del><code>is_execution_policy&lt;T&gt;::value</code> is <code>true</code>.</del>
148-
</cxx-requires>
149-
</del>
150-
</cxx-function>
151-
152-
</cxx-section>
153-
</cxx-section>
154-
15561
<cxx-section id="parallel.execpol.objects">
15662
<h1>Execution policy objects</h1>
15763

0 commit comments

Comments
 (0)