From Jason Turner

[ostringstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmplp2j8qop/{from.md → to.md} +54 -12
tmp/tmplp2j8qop/{from.md → to.md} RENAMED
@@ -1,32 +1,74 @@
1
- #### `basic_ostringstream` constructors <a id="ostringstream.cons">[[ostringstream.cons]]</a>
 
 
 
 
 
 
 
 
 
2
 
3
  ``` cpp
4
  explicit basic_ostringstream(
 
5
  ios_base::openmode which = ios_base::out);
6
  ```
7
 
8
- *Effects:* Constructs an object of class `basic_ostringstream`,
9
- initializing the base class with `basic_ostream(&sb)` and initializing
10
- `sb` with
11
- `basic_stringbuf<charT, traits, Allocator>(which | ios_base::out))` ([[stringbuf.cons]]).
 
 
 
 
 
 
 
12
 
13
  ``` cpp
14
  explicit basic_ostringstream(
15
- const basic_string<charT, traits, Allocator>& str,
16
  ios_base::openmode which = ios_base::out);
17
  ```
18
 
19
- *Effects:* Constructs an object of class
20
- `basic_ostringstream<charT, traits>`, initializing the base class with
21
- `basic_ostream(&sb)` and initializing `sb` with
22
- `basic_stringbuf<charT, traits, Allocator>(str, which | ios_base::out))` ([[stringbuf.cons]]).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23
 
24
  ``` cpp
25
  basic_ostringstream(basic_ostringstream&& 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_ostream<charT, traits>::set_rdbuf(&sb)`
31
- is called to install the contained `basic_stringbuf`.
 
32
 
 
1
+ #### Constructors <a id="ostringstream.cons">[[ostringstream.cons]]</a>
2
+
3
+ ``` cpp
4
+ explicit basic_ostringstream(ios_base::openmode which);
5
+ ```
6
+
7
+ *Effects:* Initializes the base class with
8
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
9
+ `basic_stringbuf<charT, traits, Allocator>(which | ios_base::out)`
10
+ [[stringbuf.cons]].
11
 
12
  ``` cpp
13
  explicit basic_ostringstream(
14
+ const basic_string<charT, traits, Allocator>& s,
15
  ios_base::openmode which = ios_base::out);
16
  ```
17
 
18
+ *Effects:* Initializes the base class with
19
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
20
+ `basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::out)`([[stringbuf.cons]]).
21
+
22
+ ``` cpp
23
+ basic_ostringstream(ios_base::openmode which, const Allocator& a);
24
+ ```
25
+
26
+ *Effects:* Initializes the base class with
27
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
28
+ `basic_stringbuf<charT, traits, Allocator>(which | ios_base::out, a)`([[stringbuf.cons]]).
29
 
30
  ``` cpp
31
  explicit basic_ostringstream(
32
+ basic_string<charT, traits, Allocator>&& s,
33
  ios_base::openmode which = ios_base::out);
34
  ```
35
 
36
+ *Effects:* Initializes the base class with
37
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
38
+ `basic_stringbuf<charT, traits, Allocator>(std::move(s), which | ios_base::out)`
39
+ [[stringbuf.cons]].
40
+
41
+ ``` cpp
42
+ template<class SAlloc>
43
+ basic_ostringstream(
44
+ const basic_string<charT, traits, SAlloc>& s,
45
+ ios_base::openmode which, const Allocator& a);
46
+ ```
47
+
48
+ *Effects:* Initializes the base class with
49
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
50
+ `basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::out, a)`([[stringbuf.cons]]).
51
+
52
+ ``` cpp
53
+ template<class SAlloc>
54
+ explicit basic_ostringstream(
55
+ const basic_string<charT, traits, SAlloc>& s,
56
+ ios_base::openmode which = ios_base::out);
57
+ ```
58
+
59
+ *Constraints:* `is_same_v<SAlloc,Allocator>` is `false`.
60
+
61
+ *Effects:* Initializes the base class with
62
+ `basic_ostream<charT, traits>(addressof(sb))` [[ostream]] and `sb` with
63
+ `basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::out)`([[stringbuf.cons]]).
64
 
65
  ``` cpp
66
  basic_ostringstream(basic_ostringstream&& rhs);
67
  ```
68
 
69
  *Effects:* Move constructs from the rvalue `rhs`. This is accomplished
70
  by move constructing the base class, and the contained
71
+ `basic_stringbuf`. Then calls
72
+ `basic_ostream<charT, traits>::set_rdbuf(addressof(sb))` to install the
73
+ contained `basic_stringbuf`.
74