From Jason Turner

[valarray.range]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp5y1wizzb/{from.md → to.md} +10 -10
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 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.
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);