From Jason Turner

[stringstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpkoi3ecrj/{from.md → to.md} +34 -14
tmp/tmpkoi3ecrj/{from.md → to.md} RENAMED
@@ -3,41 +3,41 @@
3
  ``` cpp
4
  explicit basic_stringstream(ios_base::openmode which);
5
  ```
6
 
7
  *Effects:* Initializes the base class with
8
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
9
- `sb` with `basic_stringbuf<charT, traits, Allocator>(which)`.
10
 
11
  ``` cpp
12
  explicit basic_stringstream(
13
  const basic_string<charT, traits, Allocator>& s,
14
  ios_base::openmode which = ios_base::out | ios_base::in);
15
  ```
16
 
17
  *Effects:* Initializes the base class with
18
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
19
- `sb` with `basic_stringbuf<charT, traits, Allocator>(s, which)`.
20
 
21
  ``` cpp
22
  basic_stringstream(ios_base::openmode which, const Allocator& a);
23
  ```
24
 
25
  *Effects:* Initializes the base class with
26
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
27
- `sb` with `basic_stringbuf<charT, traits, Allocator>(which, a)`
28
  [[stringbuf.cons]].
29
 
30
  ``` cpp
31
  explicit basic_stringstream(
32
  basic_string<charT, traits, Allocator>&& s,
33
  ios_base::openmode which = ios_base::out | ios_base::in);
34
  ```
35
 
36
  *Effects:* Initializes the base class with
37
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
38
- `sb` with
39
  `basic_stringbuf<charT, traits, Allocator>(std::move(s), which)`
40
  [[stringbuf.cons]].
41
 
42
  ``` cpp
43
  template<class SAlloc>
@@ -45,12 +45,12 @@ template<class SAlloc>
45
  const basic_string<charT, traits, SAlloc>& s,
46
  ios_base::openmode which, const Allocator& a);
47
  ```
48
 
49
  *Effects:* Initializes the base class with
50
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
51
- `sb` with `basic_stringbuf<charT, traits, Allocator>(s, which, a)`
52
  [[stringbuf.cons]].
53
 
54
  ``` cpp
55
  template<class SAlloc>
56
  explicit basic_stringstream(
@@ -59,19 +59,39 @@ template<class SAlloc>
59
  ```
60
 
61
  *Constraints:* `is_same_v<SAlloc, Allocator>` is `false`.
62
 
63
  *Effects:* Initializes the base class with
64
- `basic_iostream<charT, traits>(addressof(sb))` [[iostream.cons]] and
65
- `sb` with `basic_stringbuf<charT, traits, Allocator>(s, which)`
66
  [[stringbuf.cons]].
67
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
68
  ``` cpp
69
  basic_stringstream(basic_stringstream&& rhs);
70
  ```
71
 
72
  *Effects:* Move constructs from the rvalue `rhs`. This is accomplished
73
  by move constructing the base class, and the contained
74
  `basic_stringbuf`. Then calls
75
- `basic_istream<charT, traits>::set_rdbuf(addressof(sb))` to install the
76
- contained `basic_stringbuf`.
77
 
 
3
  ``` cpp
4
  explicit basic_stringstream(ios_base::openmode which);
5
  ```
6
 
7
  *Effects:* Initializes the base class with
8
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
9
+ and *sb* with `basic_stringbuf<charT, traits, Allocator>(which)`.
10
 
11
  ``` cpp
12
  explicit basic_stringstream(
13
  const basic_string<charT, traits, Allocator>& s,
14
  ios_base::openmode which = ios_base::out | ios_base::in);
15
  ```
16
 
17
  *Effects:* Initializes the base class with
18
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
19
+ and *sb* with `basic_stringbuf<charT, traits, Allocator>(s, which)`.
20
 
21
  ``` cpp
22
  basic_stringstream(ios_base::openmode which, const Allocator& a);
23
  ```
24
 
25
  *Effects:* Initializes the base class with
26
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
27
+ and *sb* with `basic_stringbuf<charT, traits, Allocator>(which, a)`
28
  [[stringbuf.cons]].
29
 
30
  ``` cpp
31
  explicit basic_stringstream(
32
  basic_string<charT, traits, Allocator>&& s,
33
  ios_base::openmode which = ios_base::out | ios_base::in);
34
  ```
35
 
36
  *Effects:* Initializes the base class with
37
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
38
+ and *sb* with
39
  `basic_stringbuf<charT, traits, Allocator>(std::move(s), which)`
40
  [[stringbuf.cons]].
41
 
42
  ``` cpp
43
  template<class SAlloc>
 
45
  const basic_string<charT, traits, SAlloc>& s,
46
  ios_base::openmode which, const Allocator& a);
47
  ```
48
 
49
  *Effects:* Initializes the base class with
50
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
51
+ and *sb* with `basic_stringbuf<charT, traits, Allocator>(s, which, a)`
52
  [[stringbuf.cons]].
53
 
54
  ``` cpp
55
  template<class SAlloc>
56
  explicit basic_stringstream(
 
59
  ```
60
 
61
  *Constraints:* `is_same_v<SAlloc, Allocator>` is `false`.
62
 
63
  *Effects:* Initializes the base class with
64
+ `basic_iostream<charT, traits>(addressof(`*`sb`*`))` [[iostream.cons]]
65
+ and *sb* with `basic_stringbuf<charT, traits, Allocator>(s, which)`
66
  [[stringbuf.cons]].
67
 
68
+ ``` cpp
69
+ template<class T>
70
+ explicit basic_stringstream(const T& t, ios_base::openmode which = ios_base::out | ios_base::in);
71
+ template<class T>
72
+ basic_stringstream(const T& t, const Allocator& a);
73
+ template<class T>
74
+ basic_stringstream(const T& t, ios_base::openmode which, const Allocator& a);
75
+ ```
76
+
77
+ Let `which` be `ios_base::out | ios_base::in` for the overload with no
78
+ parameter `which`, and `a` be `Allocator()` for the overload with no
79
+ parameter `a`.
80
+
81
+ *Constraints:*
82
+ `is_convertible_v<const T&, basic_string_view<charT, traits>>` is
83
+ `true`.
84
+
85
+ *Effects:* Initializes the base class with `addressof(`*`sb`*`)`, and
86
+ direct-non-list-initializes *sb* with `t, which, a`.
87
+
88
  ``` cpp
89
  basic_stringstream(basic_stringstream&& rhs);
90
  ```
91
 
92
  *Effects:* Move constructs from the rvalue `rhs`. This is accomplished
93
  by move constructing the base class, and the contained
94
  `basic_stringbuf`. Then calls
95
+ `basic_istream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` to
96
+ install the contained `basic_stringbuf`.
97