tmp/tmpjstgklav/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,38 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
##### General <a id="iostreamclass.general">[[iostreamclass.general]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
template<class charT, class traits = char_traits<charT>>
|
| 6 |
+
class basic_iostream
|
| 7 |
+
: public basic_istream<charT, traits>,
|
| 8 |
+
public basic_ostream<charT, traits> {
|
| 9 |
+
public:
|
| 10 |
+
using char_type = charT;
|
| 11 |
+
using int_type = typename traits::int_type;
|
| 12 |
+
using pos_type = typename traits::pos_type;
|
| 13 |
+
using off_type = typename traits::off_type;
|
| 14 |
+
using traits_type = traits;
|
| 15 |
+
|
| 16 |
+
// [iostream.cons], constructor
|
| 17 |
+
explicit basic_iostream(basic_streambuf<charT, traits>* sb);
|
| 18 |
+
|
| 19 |
+
// [iostream.dest], destructor
|
| 20 |
+
virtual ~basic_iostream();
|
| 21 |
+
|
| 22 |
+
protected:
|
| 23 |
+
// [iostream.cons], constructor
|
| 24 |
+
basic_iostream(const basic_iostream&) = delete;
|
| 25 |
+
basic_iostream(basic_iostream&& rhs);
|
| 26 |
+
|
| 27 |
+
// [iostream.assign], assignment and swap
|
| 28 |
+
basic_iostream& operator=(const basic_iostream&) = delete;
|
| 29 |
+
basic_iostream& operator=(basic_iostream&& rhs);
|
| 30 |
+
void swap(basic_iostream& rhs);
|
| 31 |
+
};
|
| 32 |
+
}
|
| 33 |
+
```
|
| 34 |
+
|
| 35 |
+
The class template `basic_iostream` inherits a number of functions that
|
| 36 |
+
allow reading input and writing output to sequences controlled by a
|
| 37 |
+
stream buffer.
|
| 38 |
+
|