From Jason Turner

[valarray.cons]

Diff to HTML by rtfpessoa

tmp/tmpy3oh77ei/{from.md → to.md} RENAMED
@@ -1,6 +1,6 @@
1
- #### `valarray` constructors <a id="valarray.cons">[[valarray.cons]]</a>
2
 
3
  ``` cpp
4
  valarray();
5
  ```
6
 
@@ -9,11 +9,11 @@ valarray();
9
  ``` cpp
10
  explicit valarray(size_t n);
11
  ```
12
 
13
  *Effects:* Constructs a `valarray` that has length `n`. Each element of
14
- the array is value-initialized ([[dcl.init]]).
15
 
16
  ``` cpp
17
  valarray(const T& v, size_t n);
18
  ```
19
 
@@ -22,12 +22,11 @@ the array is initialized with `v`.
22
 
23
  ``` cpp
24
  valarray(const T* p, size_t n);
25
  ```
26
 
27
- *Requires:* `p` points to an array ([[dcl.array]]) of at least `n`
28
- elements.
29
 
30
  *Effects:* Constructs a `valarray` that has length `n`. The values of
31
  the elements of the array are initialized with the first `n` values
32
  pointed to by the first argument.[^10]
33
 
 
1
+ #### Constructors <a id="valarray.cons">[[valarray.cons]]</a>
2
 
3
  ``` cpp
4
  valarray();
5
  ```
6
 
 
9
  ``` cpp
10
  explicit valarray(size_t n);
11
  ```
12
 
13
  *Effects:* Constructs a `valarray` that has length `n`. Each element of
14
+ the array is value-initialized [[dcl.init]].
15
 
16
  ``` cpp
17
  valarray(const T& v, size_t n);
18
  ```
19
 
 
22
 
23
  ``` cpp
24
  valarray(const T* p, size_t n);
25
  ```
26
 
27
+ *Preconditions:* \[`p`, `p + n`) is a valid range.
 
28
 
29
  *Effects:* Constructs a `valarray` that has length `n`. The values of
30
  the elements of the array are initialized with the first `n` values
31
  pointed to by the first argument.[^10]
32