tmp/tmpp6cjimd1/{from.md → to.md}
RENAMED
|
@@ -1,36 +1,39 @@
|
|
| 1 |
#### `istream_iterator` constructors and destructor <a id="istream.iterator.cons">[[istream.iterator.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:* Constructs the end-of-stream iterator. If
|
| 8 |
-
|
|
|
|
| 9 |
|
| 10 |
-
`in_stream == 0`.
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
istream_iterator(istream_type& s);
|
| 14 |
```
|
| 15 |
|
| 16 |
-
*Effects:* Initializes
|
| 17 |
-
during construction or the first time it is referenced.
|
| 18 |
|
| 19 |
-
`in_stream ==
|
| 20 |
|
| 21 |
``` cpp
|
| 22 |
istream_iterator(const istream_iterator& x) = default;
|
| 23 |
```
|
| 24 |
|
| 25 |
-
*Effects:* Constructs a copy of `x`. If
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
-
`in_stream == x.in_stream`.
|
| 29 |
|
| 30 |
``` cpp
|
| 31 |
~istream_iterator() = default;
|
| 32 |
```
|
| 33 |
|
| 34 |
-
*Effects:* The iterator is destroyed. If
|
| 35 |
-
|
|
|
|
| 36 |
|
|
|
|
| 1 |
#### `istream_iterator` constructors and destructor <a id="istream.iterator.cons">[[istream.iterator.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
constexpr istream_iterator();
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Constructs the end-of-stream iterator. If
|
| 8 |
+
`is_trivially_default_constructible_v<T>` is `true`, then this
|
| 9 |
+
constructor is a constexpr constructor.
|
| 10 |
|
| 11 |
+
*Postconditions:* `in_stream == 0`.
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
istream_iterator(istream_type& s);
|
| 15 |
```
|
| 16 |
|
| 17 |
+
*Effects:* Initializes `in_stream` with `addressof(s)`. `value` may be
|
| 18 |
+
initialized during construction or the first time it is referenced.
|
| 19 |
|
| 20 |
+
*Postconditions:* `in_stream == addressof(s)`.
|
| 21 |
|
| 22 |
``` cpp
|
| 23 |
istream_iterator(const istream_iterator& x) = default;
|
| 24 |
```
|
| 25 |
|
| 26 |
+
*Effects:* Constructs a copy of `x`. If
|
| 27 |
+
`is_trivially_copy_constructible_v<T>` is `true`, then this constructor
|
| 28 |
+
is a trivial copy constructor.
|
| 29 |
|
| 30 |
+
*Postconditions:* `in_stream == x.in_stream`.
|
| 31 |
|
| 32 |
``` cpp
|
| 33 |
~istream_iterator() = default;
|
| 34 |
```
|
| 35 |
|
| 36 |
+
*Effects:* The iterator is destroyed. If
|
| 37 |
+
`is_trivially_destructible_v<T>` is `true`, then this destructor is a
|
| 38 |
+
trivial destructor.
|
| 39 |
|