From Jason Turner

[depr.istrstream]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpiojbqgf5/{from.md → to.md} +0 -62
tmp/tmpiojbqgf5/{from.md → to.md} RENAMED
@@ -1,62 +0,0 @@
1
- ### Class `istrstream` <a id="depr.istrstream">[[depr.istrstream]]</a>
2
-
3
- #### General <a id="depr.istrstream.general">[[depr.istrstream.general]]</a>
4
-
5
- ``` cpp
6
- namespace std {
7
- class istrstream : public basic_istream<char> {
8
- public:
9
- explicit istrstream(const char* s);
10
- explicit istrstream(char* s);
11
- istrstream(const char* s, streamsize n);
12
- istrstream(char* s, streamsize n);
13
- virtual ~istrstream();
14
-
15
- strstreambuf* rdbuf() const;
16
- char* str();
17
- private:
18
- strstreambuf sb; // exposition only
19
- };
20
- }
21
- ```
22
-
23
- The class `istrstream` supports the reading of objects of class
24
- `strstreambuf`. It supplies a `strstreambuf` object to control the
25
- associated array object. For the sake of exposition, the maintained data
26
- is presented here as:
27
-
28
- - `sb`, the `strstreambuf` object.
29
-
30
- #### `istrstream` constructors <a id="depr.istrstream.cons">[[depr.istrstream.cons]]</a>
31
-
32
- ``` cpp
33
- explicit istrstream(const char* s);
34
- explicit istrstream(char* s);
35
- ```
36
-
37
- *Effects:* Initializes the base class with `istream(&sb)` and `sb` with
38
- `strstreambuf(s, 0)`. `s` shall designate the first element of an NTBS.
39
-
40
- ``` cpp
41
- istrstream(const char* s, streamsize n);
42
- istrstream(char* s, streamsize n);
43
- ```
44
-
45
- *Effects:* Initializes the base class with `istream(&sb)` and `sb` with
46
- `strstreambuf(s, n)`. `s` shall designate the first element of an array
47
- whose length is `n` elements, and `n` shall be greater than zero.
48
-
49
- #### Member functions <a id="depr.istrstream.members">[[depr.istrstream.members]]</a>
50
-
51
- ``` cpp
52
- strstreambuf* rdbuf() const;
53
- ```
54
-
55
- *Returns:* `const_cast<strstreambuf*>(&sb)`.
56
-
57
- ``` cpp
58
- char* str();
59
- ```
60
-
61
- *Returns:* `rdbuf()->str()`.
62
-