From Jason Turner

[valarray.assign]

Diff to HTML by rtfpessoa

tmp/tmp6r76lbhx/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- #### `valarray` assignment <a id="valarray.assign">[[valarray.assign]]</a>
2
 
3
  ``` cpp
4
  valarray& operator=(const valarray& v);
5
  ```
6
 
@@ -8,11 +8,11 @@ valarray& operator=(const valarray& v);
8
  the corresponding element of `v`. If the length of `v` is not equal to
9
  the length of `*this`, resizes `*this` to make the two arrays the same
10
  length, as if by calling `resize(v.size())`, before performing the
11
  assignment.
12
 
13
- *Postconditions:* `size() == v.size()`.
14
 
15
  *Returns:* `*this`.
16
 
17
  ``` cpp
18
  valarray& operator=(valarray&& v) noexcept;
@@ -44,13 +44,13 @@ valarray& operator=(const slice_array<T>&);
44
  valarray& operator=(const gslice_array<T>&);
45
  valarray& operator=(const mask_array<T>&);
46
  valarray& operator=(const indirect_array<T>&);
47
  ```
48
 
49
- *Requires:* The length of the array to which the argument refers equals
50
- `size()`. The value of an element in the left-hand side of a `valarray`
51
- assignment operator does not depend on the value of another element in
52
- that left-hand side.
53
 
54
  These operators allow the results of a generalized subscripting
55
  operation to be assigned directly to a `valarray`.
56
 
 
1
+ #### Assignment <a id="valarray.assign">[[valarray.assign]]</a>
2
 
3
  ``` cpp
4
  valarray& operator=(const valarray& v);
5
  ```
6
 
 
8
  the corresponding element of `v`. If the length of `v` is not equal to
9
  the length of `*this`, resizes `*this` to make the two arrays the same
10
  length, as if by calling `resize(v.size())`, before performing the
11
  assignment.
12
 
13
+ *Ensures:* `size() == v.size()`.
14
 
15
  *Returns:* `*this`.
16
 
17
  ``` cpp
18
  valarray& operator=(valarray&& v) noexcept;
 
44
  valarray& operator=(const gslice_array<T>&);
45
  valarray& operator=(const mask_array<T>&);
46
  valarray& operator=(const indirect_array<T>&);
47
  ```
48
 
49
+ *Preconditions:* The length of the array to which the argument refers
50
+ equals `size()`. The value of an element in the left-hand side of a
51
+ `valarray` assignment operator does not depend on the value of another
52
+ element in that left-hand side.
53
 
54
  These operators allow the results of a generalized subscripting
55
  operation to be assigned directly to a `valarray`.
56