Skip to content

Commit 09d9ec0

Browse files
committed
Eliminate dynamic execution policy
1 parent 8580280 commit 09d9ec0

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
@@ -57,100 +57,6 @@ <h1>Vector execution policy</h1>
5757

5858
</cxx-section>
5959

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

0 commit comments

Comments
 (0)