tmp/tmpyrm53zdv/{from.md → to.md}
RENAMED
|
@@ -1,31 +1,74 @@
|
|
| 1 |
-
####
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
-
explicit basic_istringstream(ios_base::openmode which
|
| 5 |
```
|
| 6 |
|
| 7 |
-
*Effects:*
|
| 8 |
-
`
|
| 9 |
-
`
|
| 10 |
-
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
explicit basic_istringstream(
|
| 14 |
-
const basic_string<charT, traits, Allocator>&
|
| 15 |
ios_base::openmode which = ios_base::in);
|
| 16 |
```
|
| 17 |
|
| 18 |
-
*Effects:*
|
| 19 |
-
`
|
| 20 |
-
`
|
| 21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 22 |
|
| 23 |
``` cpp
|
| 24 |
basic_istringstream(basic_istringstream&& rhs);
|
| 25 |
```
|
| 26 |
|
| 27 |
*Effects:* Move constructs from the rvalue `rhs`. This is accomplished
|
| 28 |
by move constructing the base class, and the contained
|
| 29 |
-
`basic_stringbuf`.
|
| 30 |
-
|
|
|
|
| 31 |
|
|
|
|
| 1 |
+
#### Constructors <a id="istringstream.cons">[[istringstream.cons]]</a>
|
| 2 |
|
| 3 |
``` cpp
|
| 4 |
+
explicit basic_istringstream(ios_base::openmode which);
|
| 5 |
```
|
| 6 |
|
| 7 |
+
*Effects:* Initializes the base class with
|
| 8 |
+
`basic_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 9 |
+
`basic_stringbuf<charT, traits, Allocator>(which | ios_base::in)`
|
| 10 |
+
[[stringbuf.cons]].
|
| 11 |
|
| 12 |
``` cpp
|
| 13 |
explicit basic_istringstream(
|
| 14 |
+
const basic_string<charT, traits, Allocator>& s,
|
| 15 |
ios_base::openmode which = ios_base::in);
|
| 16 |
```
|
| 17 |
|
| 18 |
+
*Effects:* Initializes the base class with
|
| 19 |
+
`basic_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 20 |
+
`basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::in)`([[stringbuf.cons]]).
|
| 21 |
+
|
| 22 |
+
``` cpp
|
| 23 |
+
basic_istringstream(ios_base::openmode which, const Allocator& a);
|
| 24 |
+
```
|
| 25 |
+
|
| 26 |
+
*Effects:* Initializes the base class with
|
| 27 |
+
`basic_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 28 |
+
`basic_stringbuf<charT, traits, Allocator>(which | ios_base::in, a)`
|
| 29 |
+
[[stringbuf.cons]].
|
| 30 |
+
|
| 31 |
+
``` cpp
|
| 32 |
+
explicit basic_istringstream(
|
| 33 |
+
basic_string<charT, traits, Allocator>&& s,
|
| 34 |
+
ios_base::openmode which = ios_base::in);
|
| 35 |
+
```
|
| 36 |
+
|
| 37 |
+
*Effects:* Initializes the base class with
|
| 38 |
+
`basic_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 39 |
+
`basic_stringbuf<charT, traits, Allocator>(std::move(s), which | ios_base::in)`
|
| 40 |
+
[[stringbuf.cons]].
|
| 41 |
+
|
| 42 |
+
``` cpp
|
| 43 |
+
template<class SAlloc>
|
| 44 |
+
basic_istringstream(
|
| 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_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 51 |
+
`basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::in, a)`([[stringbuf.cons]]).
|
| 52 |
+
|
| 53 |
+
``` cpp
|
| 54 |
+
template<class SAlloc>
|
| 55 |
+
explicit basic_istringstream(
|
| 56 |
+
const basic_string<charT, traits, SAlloc>& s,
|
| 57 |
+
ios_base::openmode which = ios_base::in);
|
| 58 |
+
```
|
| 59 |
+
|
| 60 |
+
*Effects:* Initializes the base class with
|
| 61 |
+
`basic_istream<charT, traits>(addressof(sb))` [[istream]] and `sb` with
|
| 62 |
+
`basic_stringbuf<charT, traits, Allocator>(s, which | ios_base::in)`
|
| 63 |
+
[[stringbuf.cons]].
|
| 64 |
|
| 65 |
``` cpp
|
| 66 |
basic_istringstream(basic_istringstream&& 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_istream<charT, traits>::set_rdbuf(addressof(sb))` to install the
|
| 73 |
+
contained `basic_stringbuf`.
|
| 74 |
|