tmp/tmplp2j8qop/{from.md → to.md}
RENAMED
|
@@ -1,32 +1,74 @@
|
|
| 1 |
-
####
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
explicit basic_ostringstream(
|
|
|
|
| 5 |
ios_base::openmode which = ios_base::out);
|
| 6 |
```
|
| 7 |
|
| 8 |
-
*Effects:*
|
| 9 |
-
|
| 10 |
-
`
|
| 11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 12 |
|
| 13 |
``` cpp
|
| 14 |
explicit basic_ostringstream(
|
| 15 |
-
|
| 16 |
ios_base::openmode which = ios_base::out);
|
| 17 |
```
|
| 18 |
|
| 19 |
-
*Effects:*
|
| 20 |
-
`
|
| 21 |
-
`
|
| 22 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 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`.
|
| 31 |
-
|
|
|
|
| 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 |
|