From Jason Turner

[indirect.array.assign]

Diff to HTML by rtfpessoa

tmp/tmpc92cr1c7/{from.md → to.md} RENAMED
@@ -10,15 +10,19 @@ values of the argument array elements to selected elements of the
10
  `valarray<T>` object to which it refers.
11
 
12
  If the `indirect_array` specifies an element in the `valarray<T>` object
13
  to which it refers more than once, the behavior is undefined.
14
 
 
 
15
  ``` cpp
16
  int addr[] = {2, 3, 1, 4, 4};
17
  valarray<size_t> indirect(addr, 5);
18
  valarray<double> a(0., 10), b(1., 5);
19
  a[indirect] = b;
20
  ```
21
 
22
  results in undefined behavior since element 4 is specified twice in the
23
  indirection.
24
 
 
 
 
10
  `valarray<T>` object to which it refers.
11
 
12
  If the `indirect_array` specifies an element in the `valarray<T>` object
13
  to which it refers more than once, the behavior is undefined.
14
 
15
+ [*Example 1*:
16
+
17
  ``` cpp
18
  int addr[] = {2, 3, 1, 4, 4};
19
  valarray<size_t> indirect(addr, 5);
20
  valarray<double> a(0., 10), b(1., 5);
21
  a[indirect] = b;
22
  ```
23
 
24
  results in undefined behavior since element 4 is specified twice in the
25
  indirection.
26
 
27
+ — *end example*]
28
+