From Jason Turner

[move.iter.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp_igih4__/{from.md → to.md} +35 -0
tmp/tmp_igih4__/{from.md → to.md} RENAMED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Construction and assignment <a id="move.iter.cons">[[move.iter.cons]]</a>
2
+
3
+ ``` cpp
4
+ constexpr move_iterator();
5
+ ```
6
+
7
+ *Effects:* Constructs a `move_iterator`, value-initializing `current`.
8
+ Iterator operations applied to the resulting iterator have defined
9
+ behavior if and only if the corresponding operations are defined on a
10
+ value-initialized iterator of type `Iterator`.
11
+
12
+ ``` cpp
13
+ constexpr explicit move_iterator(Iterator i);
14
+ ```
15
+
16
+ *Effects:* Constructs a `move_iterator`, initializing `current` with
17
+ `std::move(i)`.
18
+
19
+ ``` cpp
20
+ template<class U> constexpr move_iterator(const move_iterator<U>& u);
21
+ ```
22
+
23
+ *Mandates:* `U` is convertible to `Iterator`.
24
+
25
+ *Effects:* Constructs a `move_iterator`, initializing `current` with
26
+ `u.base()`.
27
+
28
+ ``` cpp
29
+ template<class U> constexpr move_iterator& operator=(const move_iterator<U>& u);
30
+ ```
31
+
32
+ *Mandates:* `U` is convertible to `Iterator`.
33
+
34
+ *Effects:* Assigns `u.base()` to `current`.
35
+