Skip to content

Commit d8cd02a

Browse files
committed
Replace "&" with "&"
1 parent 3871828 commit d8cd02a

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

algorithms.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ <h1>Effect of execution policies on algorithm execution</h1>
3636
<cxx-example><pre>using namespace std::experimental::parallel;
3737
int a[] = {0,1};
3838
std::vector&lt;int&gt; v;
39-
for_each(par, std::begin(a), std::end(a), [&](int i) {
39+
for_each(par, std::begin(a), std::end(a), [&amp;](int i) {
4040
v.push_back(i*2+1);
4141
});
4242
foo bar</pre>
@@ -66,7 +66,7 @@ <h1>Effect of execution policies on algorithm execution</h1>
6666
int x;
6767
std::mutex m;
6868
int a[] = {1,2};
69-
for_each(par, std::begin(a), std::end(a), [&](int) {
69+
for_each(par, std::begin(a), std::end(a), [&amp;](int) {
7070
m.lock();
7171
++x;
7272
m.unlock();
@@ -92,7 +92,7 @@ <h1>Effect of execution policies on algorithm execution</h1>
9292
int x;
9393
std::mutex m;
9494
int a[] = {1,2};
95-
for_each(vec, std::begin(a), std::end(a), [&](int) {
95+
for_each(vec, std::begin(a), std::end(a), [&amp;](int) {
9696
m.lock();
9797
++x;
9898
m.unlock();
@@ -152,7 +152,7 @@ <h1><code>ExecutionPolicy</code> algorithm overloads</h1>
152152
Parallel algorithms coexist alongside their sequential counterparts as overloads
153153
distinguished by a formal template parameter named <code>ExecutionPolicy</code>. This
154154
template parameter corresponds to the parallel algorithm's first function parameter, whose
155-
type is <code>ExecutionPolicy&&</code>.
155+
type is <code>ExecutionPolicy&amp;&amp;</code>.
156156
</p>
157157

158158
<p>
@@ -329,7 +329,7 @@ <h1>Header <code>&lt;experimental/algorithm&gt;</code> synopsis</h1>
329329
namespace parallel {
330330
template&lt;class ExecutionPolicy,
331331
class InputIterator, class Function&gt;
332-
void for_each(ExecutionPolicy&& exec,
332+
void for_each(ExecutionPolicy&amp;&amp; exec,
333333
InputIterator first, InputIterator last,
334334
Function f);
335335
template&lt;class InputIterator, class Size, class Function&gt;
@@ -348,7 +348,7 @@ <h1>For each</h1>
348348
<cxx-signature>
349349
template&lt;class ExecutionPolicy,
350350
class InputIterator, class Function&gt;
351-
void for_each(ExecutionPolicy&& exec,
351+
void for_each(ExecutionPolicy&amp;&amp; exec,
352352
InputIterator first, InputIterator last,
353353
Function f);
354354
</cxx-signature>

exceptions.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,8 @@ <h1>Exception reporting behavior</h1>
5858
{
5959
public:
6060
typedef exception_ptr value_type;
61-
typedef const value_type& reference;
62-
typedef const value_type& const_reference;
61+
typedef const value_type&amp; reference;
62+
typedef const value_type&amp; const_reference;
6363
typedef <em>implementation-defined</em> const_iterator;
6464
typedef const_iterator iterator;
6565
typedef typename iterator_traits<const_iterator>::difference_type difference_type;

0 commit comments

Comments
 (0)