From Jason Turner

[counted.iter.const]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmps8c6vsft/{from.md → to.md} +30 -0
tmp/tmps8c6vsft/{from.md → to.md} RENAMED
@@ -0,0 +1,30 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #### Constructors and conversions <a id="counted.iter.const">[[counted.iter.const]]</a>
2
+
3
+ ``` cpp
4
+ constexpr counted_iterator(I i, iter_difference_t<I> n);
5
+ ```
6
+
7
+ *Preconditions:* `n >= 0`.
8
+
9
+ *Effects:* Initializes `current` with `std::move(i)` and `length` with
10
+ `n`.
11
+
12
+ ``` cpp
13
+ template<class I2>
14
+ requires convertible_to<const I2&, I>
15
+ constexpr counted_iterator(const counted_iterator<I2>& x);
16
+ ```
17
+
18
+ *Effects:* Initializes `current` with `x.current` and `length` with
19
+ `x.length`.
20
+
21
+ ``` cpp
22
+ template<class I2>
23
+ requires assignable_from<I&, const I2&>
24
+ constexpr counted_iterator& operator=(const counted_iterator<I2>& x);
25
+ ```
26
+
27
+ *Effects:* Assigns `x.current` to `current` and `x.length` to `length`.
28
+
29
+ *Returns:* `*this`.
30
+