tmp/tmp5y1wizzb/{from.md → to.md}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
| 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
|
| 5 |
-
|
| 6 |
-
[[iterator.
|
| 7 |
-
parameter `T` and whose `reference` type is
|
| 8 |
-
type that meets the requirements of a constant
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 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]]
|
| 16 |
that array ends, whichever happens first.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template<class T> unspecified{1} begin(valarray<T>& v);
|
| 20 |
template<class T> unspecified{2} begin(const valarray<T>& v);
|
|
|
|
| 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
|
| 5 |
+
*Cpp17RandomAccessIterator* [[random.access.iterators]] and models
|
| 6 |
+
`contiguous_iterator` [[iterator.concept.contiguous]], whose
|
| 7 |
+
`value_type` is the template parameter `T` and whose `reference` type is
|
| 8 |
+
`T&`. *unspecified*2 is a type that meets the requirements of a constant
|
| 9 |
+
*Cpp17RandomAccessIterator* and models `contiguous_iterator`, whose
|
| 10 |
+
`value_type` is the template parameter `T` and whose `reference` type is
|
| 11 |
+
`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.
|
| 17 |
|
| 18 |
``` cpp
|
| 19 |
template<class T> unspecified{1} begin(valarray<T>& v);
|
| 20 |
template<class T> unspecified{2} begin(const valarray<T>& v);
|