From Jason Turner

[span.iterators]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpht3sd7_5/{from.md → to.md} +38 -0
tmp/tmpht3sd7_5/{from.md → to.md} RENAMED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Iterator support <a id="span.iterators">[[span.iterators]]</a>
2
+
3
+ ``` cpp
4
+ using iterator = implementation-defined // type of span::iterator;
5
+ ```
6
+
7
+ The type models `contiguous_iterator` [[iterator.concept.contiguous]],
8
+ meets the *Cpp17RandomAccessIterator*
9
+ requirements [[random.access.iterators]], and meets the requirements for
10
+ constexpr iterators [[iterator.requirements.general]]. All requirements
11
+ on container iterators [[container.requirements]] apply to
12
+ `span::iterator` as well.
13
+
14
+ ``` cpp
15
+ constexpr iterator begin() const noexcept;
16
+ ```
17
+
18
+ *Returns:* An iterator referring to the first element in the span. If
19
+ `empty()` is `true`, then it returns the same value as `end()`.
20
+
21
+ ``` cpp
22
+ constexpr iterator end() const noexcept;
23
+ ```
24
+
25
+ *Returns:* An iterator which is the past-the-end value.
26
+
27
+ ``` cpp
28
+ constexpr reverse_iterator rbegin() const noexcept;
29
+ ```
30
+
31
+ *Effects:* Equivalent to: `return reverse_iterator(end());`
32
+
33
+ ``` cpp
34
+ constexpr reverse_iterator rend() const noexcept;
35
+ ```
36
+
37
+ *Effects:* Equivalent to: `return reverse_iterator(begin());`
38
+