tmp/tmprce38tbn/{from.md → to.md}
RENAMED
|
@@ -1,14 +1,16 @@
|
|
| 1 |
-
### valarray range access <a id="valarray.range">[[valarray.range]]</a>
|
| 2 |
|
| 3 |
In the `begin` and `end` function templates that follow, *unspecified*1
|
| 4 |
is a type that meets the requirements of a mutable random access
|
| 5 |
-
iterator ([[random.access.iterators]])
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
random access iterator (
|
| 9 |
-
|
|
|
|
|
|
|
| 10 |
|
| 11 |
The iterators returned by `begin` and `end` for an array are guaranteed
|
| 12 |
to be valid until the member function `resize(size_t, T)` (
|
| 13 |
[[valarray.members]]) is called for that array or until the lifetime of
|
| 14 |
that array ends, whichever happens first.
|
|
@@ -16,15 +18,14 @@ that array ends, whichever happens first.
|
|
| 16 |
``` cpp
|
| 17 |
template <class T> unspecified{1} begin(valarray<T>& v);
|
| 18 |
template <class T> unspecified{2} begin(const valarray<T>& v);
|
| 19 |
```
|
| 20 |
|
| 21 |
-
*Returns:* An iterator referencing the first value in the
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
template <class T> unspecified{1} end(valarray<T>& v);
|
| 25 |
template <class T> unspecified{2} end(const valarray<T>& v);
|
| 26 |
```
|
| 27 |
|
| 28 |
-
*Returns:* An iterator referencing one past the last value in the
|
| 29 |
-
numeric array.
|
| 30 |
|
|
|
|
| 1 |
+
### `valarray` range access <a id="valarray.range">[[valarray.range]]</a>
|
| 2 |
|
| 3 |
In the `begin` and `end` function templates that follow, *unspecified*1
|
| 4 |
is a type that meets the requirements of a mutable random access
|
| 5 |
+
iterator ([[random.access.iterators]]) and of a contiguous iterator (
|
| 6 |
+
[[iterator.requirements.general]]) whose `value_type` is the template
|
| 7 |
+
parameter `T` and whose `reference` type is `T&`. *unspecified*2 is a
|
| 8 |
+
type that meets the requirements of a constant random access iterator (
|
| 9 |
+
[[random.access.iterators]]) and of a contiguous iterator (
|
| 10 |
+
[[iterator.requirements.general]]) whose `value_type` is the template
|
| 11 |
+
parameter `T` and whose `reference` type is `const T&`.
|
| 12 |
|
| 13 |
The iterators returned by `begin` and `end` for an array are guaranteed
|
| 14 |
to be valid until the member function `resize(size_t, T)` (
|
| 15 |
[[valarray.members]]) is called for that array or until the lifetime of
|
| 16 |
that array ends, whichever happens first.
|
|
|
|
| 18 |
``` cpp
|
| 19 |
template <class T> unspecified{1} begin(valarray<T>& v);
|
| 20 |
template <class T> unspecified{2} begin(const valarray<T>& v);
|
| 21 |
```
|
| 22 |
|
| 23 |
+
*Returns:* An iterator referencing the first value in the array.
|
| 24 |
|
| 25 |
``` cpp
|
| 26 |
template <class T> unspecified{1} end(valarray<T>& v);
|
| 27 |
template <class T> unspecified{2} end(const valarray<T>& v);
|
| 28 |
```
|
| 29 |
|
| 30 |
+
*Returns:* An iterator referencing one past the last value in the array.
|
|
|
|
| 31 |
|