@@ -58,100 +58,6 @@ <h1>Vector execution policy</h1>
58
58
59
59
</ cxx-section >
60
60
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<class T> execution_policy(const T& exec);
71
- template<class T> execution_policy& operator=(const T& exec);
72
-
73
- < cxx-ref insynopsis ="" to ="parallel.execpol.access "> </ cxx-ref >
74
- const type_info& type() const noexcept;
75
- template<class T> T* get() noexcept;
76
- template<class T> 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<float> sort_me = ...
85
-
86
- using namespace std::experimental::parallel;
87
- execution_policy exec = seq;
88
-
89
- if(sort_me.size() > 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<T>::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<class T> execution_policy(const T& 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<T>::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<class T> execution_policy& operator=(const T& 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& 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<class T> T* get() noexcept;</ del > </ cxx-signature > </ del >
141
- < del > < cxx-signature > < del > template<class T> 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<T>::value</ code > is < code > true</ code > .</ del >
148
- </ cxx-requires >
149
- </ del >
150
- </ cxx-function >
151
-
152
- </ cxx-section >
153
- </ cxx-section>
154
-
155
61
< cxx-section id ="parallel.execpol.objects ">
156
62
< h1 > Execution policy objects</ h1 >
157
63
0 commit comments