tmp/tmpr9s90ph1/{from.md → to.md}
RENAMED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#### General <a id="depr.ostrstream.general">[[depr.ostrstream.general]]</a>
|
| 2 |
+
|
| 3 |
+
``` cpp
|
| 4 |
+
namespace std {
|
| 5 |
+
class ostrstream : public basic_ostream<char> {
|
| 6 |
+
public:
|
| 7 |
+
ostrstream();
|
| 8 |
+
ostrstream(char* s, int n, ios_base::openmode mode = ios_base::out);
|
| 9 |
+
virtual ~ostrstream();
|
| 10 |
+
|
| 11 |
+
strstreambuf* rdbuf() const;
|
| 12 |
+
void freeze(bool freezefl = true);
|
| 13 |
+
char* str();
|
| 14 |
+
int pcount() const;
|
| 15 |
+
private:
|
| 16 |
+
strstreambuf sb; // exposition only
|
| 17 |
+
};
|
| 18 |
+
}
|
| 19 |
+
```
|
| 20 |
+
|
| 21 |
+
The class `ostrstream` supports the writing of objects of class
|
| 22 |
+
`strstreambuf`. It supplies a `strstreambuf` object to control the
|
| 23 |
+
associated array object. For the sake of exposition, the maintained data
|
| 24 |
+
is presented here as:
|
| 25 |
+
|
| 26 |
+
- `sb`, the `strstreambuf` object.
|
| 27 |
+
|