tmp/tmphyt27o3f/{from.md → to.md}
RENAMED
|
@@ -1,7 +1,9 @@
|
|
| 1 |
### Class template `ostream_iterator` <a id="ostream.iterator">[[ostream.iterator]]</a>
|
| 2 |
|
|
|
|
|
|
|
| 3 |
`ostream_iterator` writes (using `operator<<`) successive elements onto
|
| 4 |
the output stream from which it was constructed. If it was constructed
|
| 5 |
with `charT*` as a constructor argument, this string, called a
|
| 6 |
*delimiter string*, is written to the stream after every `T` is written.
|
| 7 |
|
|
@@ -17,11 +19,10 @@ namespace std {
|
|
| 17 |
using reference = void;
|
| 18 |
using char_type = charT;
|
| 19 |
using traits_type = traits;
|
| 20 |
using ostream_type = basic_ostream<charT,traits>;
|
| 21 |
|
| 22 |
-
constexpr ostream_iterator() noexcept = default;
|
| 23 |
ostream_iterator(ostream_type& s);
|
| 24 |
ostream_iterator(ostream_type& s, const charT* delimiter);
|
| 25 |
ostream_iterator(const ostream_iterator& x);
|
| 26 |
~ostream_iterator();
|
| 27 |
ostream_iterator& operator=(const ostream_iterator&) = default;
|
|
@@ -30,12 +31,12 @@ namespace std {
|
|
| 30 |
ostream_iterator& operator*();
|
| 31 |
ostream_iterator& operator++();
|
| 32 |
ostream_iterator& operator++(int);
|
| 33 |
|
| 34 |
private:
|
| 35 |
-
basic_ostream<charT,traits>* out_stream
|
| 36 |
-
const charT* delim
|
| 37 |
};
|
| 38 |
}
|
| 39 |
```
|
| 40 |
|
| 41 |
#### Constructors and destructor <a id="ostream.iterator.cons.des">[[ostream.iterator.cons.des]]</a>
|
|
|
|
| 1 |
### Class template `ostream_iterator` <a id="ostream.iterator">[[ostream.iterator]]</a>
|
| 2 |
|
| 3 |
+
#### General <a id="ostream.iterator.general">[[ostream.iterator.general]]</a>
|
| 4 |
+
|
| 5 |
`ostream_iterator` writes (using `operator<<`) successive elements onto
|
| 6 |
the output stream from which it was constructed. If it was constructed
|
| 7 |
with `charT*` as a constructor argument, this string, called a
|
| 8 |
*delimiter string*, is written to the stream after every `T` is written.
|
| 9 |
|
|
|
|
| 19 |
using reference = void;
|
| 20 |
using char_type = charT;
|
| 21 |
using traits_type = traits;
|
| 22 |
using ostream_type = basic_ostream<charT,traits>;
|
| 23 |
|
|
|
|
| 24 |
ostream_iterator(ostream_type& s);
|
| 25 |
ostream_iterator(ostream_type& s, const charT* delimiter);
|
| 26 |
ostream_iterator(const ostream_iterator& x);
|
| 27 |
~ostream_iterator();
|
| 28 |
ostream_iterator& operator=(const ostream_iterator&) = default;
|
|
|
|
| 31 |
ostream_iterator& operator*();
|
| 32 |
ostream_iterator& operator++();
|
| 33 |
ostream_iterator& operator++(int);
|
| 34 |
|
| 35 |
private:
|
| 36 |
+
basic_ostream<charT,traits>* out_stream; // exposition only
|
| 37 |
+
const charT* delim; // exposition only
|
| 38 |
};
|
| 39 |
}
|
| 40 |
```
|
| 41 |
|
| 42 |
#### Constructors and destructor <a id="ostream.iterator.cons.des">[[ostream.iterator.cons.des]]</a>
|