From Jason Turner

[depr.strstream]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpp0cyrafm/{from.md → to.md} +10 -10
tmp/tmpp0cyrafm/{from.md → to.md} RENAMED
@@ -4,14 +4,14 @@
4
  namespace std {
5
  class strstream
6
  : public basic_iostream<char> {
7
  public:
8
  // Types
9
- typedef char char_type;
10
- typedef typename char_traits<char>::int_type int_type;
11
- typedef typename char_traits<char>::pos_type pos_type;
12
- typedef typename char_traits<char>::off_type off_type;
13
 
14
  // constructors/destructor
15
  strstream();
16
  strstream(char* s, int n,
17
  ios_base::openmode mode = ios_base::in|ios_base::out);
@@ -67,18 +67,18 @@ two constructors:
67
  virtual ~strstream();
68
  ```
69
 
70
  *Effects:* Destroys an object of class `strstream`.
71
 
72
- ``` cpp
73
- strstreambuf* rdbuf() const;
74
- ```
75
-
76
- *Returns:* `&sb`.
77
-
78
  #### `strstream` operations <a id="depr.strstream.oper">[[depr.strstream.oper]]</a>
79
 
 
 
 
 
 
 
80
  ``` cpp
81
  void freeze(bool freezefl = true);
82
  ```
83
 
84
  *Effects:* Calls `rdbuf()->freeze(freezefl)`.
 
4
  namespace std {
5
  class strstream
6
  : public basic_iostream<char> {
7
  public:
8
  // Types
9
+ using char_type = char;
10
+ using int_type = char_traits<char>::int_type;
11
+ using pos_type = char_traits<char>::pos_type;
12
+ using off_type = char_traits<char>::off_type;
13
 
14
  // constructors/destructor
15
  strstream();
16
  strstream(char* s, int n,
17
  ios_base::openmode mode = ios_base::in|ios_base::out);
 
67
  virtual ~strstream();
68
  ```
69
 
70
  *Effects:* Destroys an object of class `strstream`.
71
 
 
 
 
 
 
 
72
  #### `strstream` operations <a id="depr.strstream.oper">[[depr.strstream.oper]]</a>
73
 
74
+ ``` cpp
75
+ strstreambuf* rdbuf() const;
76
+ ```
77
+
78
+ *Returns:* `&sb`.
79
+
80
  ``` cpp
81
  void freeze(bool freezefl = true);
82
  ```
83
 
84
  *Effects:* Calls `rdbuf()->freeze(freezefl)`.