@@ -12,18 +12,22 @@ <h1>In general</h1>
1212 < pre > std::vector<int> v = ...
1313
1414// standard sequential sort
15- std::sort(vec.begin(), vec.end());
15+ < del > std::sort(vec.begin(), vec.end());</ del >
16+ < ins > std::sort(std::begin(vec), std::end(vec));</ ins >
1617
1718using namespace std::experimental::parallel;
1819
1920// explicitly sequential sort
20- sort(seq, v.begin(), v.end());
21+ < del > sort(seq, v.begin(), v.end());</ del >
22+ < ins > sort(seq, std::begin(v), std::end(v));</ ins >
2123
2224// permitting parallel execution
23- sort(par, v.begin(), v.end());
25+ < del > sort(par, v.begin(), v.end());</ del >
26+ < ins > sort(par, std::begin(v), std::end(v));</ ins >
2427
2528// permitting vectorization as well
26- sort(vec, v.begin(), v.end());
29+ < del > sort(vec, v.begin(), v.end());</ del >
30+ < ins > sort(vec, std::begin(v), std::end(v));</ ins >
2731
2832// sort with dynamically-selected execution
2933size_t threshold = ...
@@ -33,7 +37,8 @@ <h1>In general</h1>
3337 exec = par;
3438}
3539
36- sort(exec, v.begin(), v.end());</ pre >
40+ < del > sort(exec, v.begin(), v.end());</ del >
41+ < ins > sort(exec, std::begin(v), std::end(v));</ ins > </ pre >
3742 </ cxx-example > < pre >
3843</ pre >
3944 < cxx-note >
@@ -180,7 +185,8 @@ <h1>Dynamic execution policy</h1>
180185 exec = std::par;
181186}
182187
183- std::sort(exec, sort_me.begin(), sort_me.end());</ pre >
188+ < del > std::sort(exec, sort_me.begin(), sort_me.end());</ del >
189+ < ins > std::sort(exec, std::begin(sort_me), std::end(sort_me));</ ins > </ pre >
184190 </ cxx-example >
185191
186192 < p > Objects of type < code > execution_policy</ code > shall be constructible and assignable from objects of
0 commit comments