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