From Jason Turner

[stringstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpegt773e6/{from.md → to.md} +57 -12
tmp/tmpegt773e6/{from.md → to.md} RENAMED
@@ -1,32 +1,77 @@
1
- #### `basic_stringstream` constructors <a id="stringstream.cons">[[stringstream.cons]]</a>
 
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  explicit basic_stringstream(
 
5
  ios_base::openmode which = ios_base::out | ios_base::in);
6
  ```
7
 
8
- *Effects:* Constructs an object of class
9
- `basic_stringstream<charT, traits>`, initializing the base class with
10
- `basic_iostream(&sb)` and initializing `sb` with
11
- `basic_stringbuf<charT, traits, Allocator>(which)`.
 
 
 
 
 
 
 
 
12
 
13
  ``` cpp
14
  explicit basic_stringstream(
15
- const basic_string<charT, traits, Allocator>& str,
16
  ios_base::openmode which = ios_base::out | ios_base::in);
17
  ```
18
 
19
- *Effects:* Constructs an object of class
20
- `basic_stringstream<charT, traits>`, initializing the base class with
21
- `basic_iostream(&sb)` and initializing `sb` with
22
- `basic_stringbuf<charT, traits, Allocator>(str, which)`.
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ``` cpp
25
  basic_stringstream(basic_stringstream&& rhs);
26
  ```
27
 
28
  *Effects:* Move constructs from the rvalue `rhs`. This is accomplished
29
  by move constructing the base class, and the contained
30
- `basic_stringbuf`. Next `basic_istream<charT, traits>::set_rdbuf(&sb)`
31
- is called to install the contained `basic_stringbuf`.
 
32
 
 
1
+ #### Constructors <a id="stringstream.cons">[[stringstream.cons]]</a>
2
+
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>
44
+ basic_stringstream(
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(
57
+ const basic_string<charT, traits, SAlloc>& s,
58
+ ios_base::openmode which = ios_base::out | ios_base::in);
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