From Jason Turner

[stringstream]

Diff to HTML by rtfpessoa

tmp/tmpi7wk7hh3/{from.md → to.md} RENAMED
@@ -1,7 +1,9 @@
1
  ### Class template `basic_stringstream` <a id="stringstream">[[stringstream]]</a>
2
 
 
 
3
  ``` cpp
4
  namespace std {
5
  template<class charT, class traits = char_traits<charT>,
6
  class Allocator = allocator<charT>>
7
  class basic_stringstream : public basic_iostream<charT, traits> {
@@ -36,13 +38,14 @@ namespace std {
36
  const basic_string<charT, traits, SAlloc>& s,
37
  ios_base::openmode which = ios_base::out | ios_base::in);
38
  basic_stringstream(const basic_stringstream&) = delete;
39
  basic_stringstream(basic_stringstream&& rhs);
40
 
41
- // [stringstream.assign], assign and swap
42
  basic_stringstream& operator=(const basic_stringstream&) = delete;
43
  basic_stringstream& operator=(basic_stringstream&& rhs);
 
 
44
  void swap(basic_stringstream& rhs);
45
 
46
  // [stringstream.members], members
47
  basic_stringbuf<charT, traits, Allocator>* rdbuf() const;
48
 
@@ -58,14 +61,10 @@ namespace std {
58
  void str(basic_string<charT, traits, Allocator>&& s);
59
 
60
  private:
61
  basic_stringbuf<charT, traits> sb; // exposition only
62
  };
63
-
64
- template<class charT, class traits, class Allocator>
65
- void swap(basic_stringstream<charT, traits, Allocator>& x,
66
- basic_stringstream<charT, traits, Allocator>& y);
67
  }
68
  ```
69
 
70
  The class template `basic_stringstream<charT, traits>` supports reading
71
  and writing from objects of class
@@ -151,11 +150,11 @@ basic_stringstream(basic_stringstream&& rhs);
151
  by move constructing the base class, and the contained
152
  `basic_stringbuf`. Then calls
153
  `basic_istream<charT, traits>::set_rdbuf(addressof(sb))` to install the
154
  contained `basic_stringbuf`.
155
 
156
- #### Assignment and swap <a id="stringstream.assign">[[stringstream.assign]]</a>
157
 
158
  ``` cpp
159
  void swap(basic_stringstream& rhs);
160
  ```
161
 
 
1
  ### Class template `basic_stringstream` <a id="stringstream">[[stringstream]]</a>
2
 
3
+ #### General <a id="stringstream.general">[[stringstream.general]]</a>
4
+
5
  ``` cpp
6
  namespace std {
7
  template<class charT, class traits = char_traits<charT>,
8
  class Allocator = allocator<charT>>
9
  class basic_stringstream : public basic_iostream<charT, traits> {
 
38
  const basic_string<charT, traits, SAlloc>& s,
39
  ios_base::openmode which = ios_base::out | ios_base::in);
40
  basic_stringstream(const basic_stringstream&) = delete;
41
  basic_stringstream(basic_stringstream&& rhs);
42
 
 
43
  basic_stringstream& operator=(const basic_stringstream&) = delete;
44
  basic_stringstream& operator=(basic_stringstream&& rhs);
45
+
46
+ // [stringstream.swap], swap
47
  void swap(basic_stringstream& rhs);
48
 
49
  // [stringstream.members], members
50
  basic_stringbuf<charT, traits, Allocator>* rdbuf() const;
51
 
 
61
  void str(basic_string<charT, traits, Allocator>&& s);
62
 
63
  private:
64
  basic_stringbuf<charT, traits> sb; // exposition only
65
  };
 
 
 
 
66
  }
67
  ```
68
 
69
  The class template `basic_stringstream<charT, traits>` supports reading
70
  and writing from objects of class
 
150
  by move constructing the base class, and the contained
151
  `basic_stringbuf`. Then calls
152
  `basic_istream<charT, traits>::set_rdbuf(addressof(sb))` to install the
153
  contained `basic_stringbuf`.
154
 
155
+ #### Swap <a id="stringstream.swap">[[stringstream.swap]]</a>
156
 
157
  ``` cpp
158
  void swap(basic_stringstream& rhs);
159
  ```
160