From Jason Turner

[istringstream.cons]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpyrm53zdv/{from.md → to.md} +56 -13
tmp/tmpyrm53zdv/{from.md → to.md} RENAMED
@@ -1,31 +1,74 @@
1
- #### `basic_istringstream` constructors <a id="istringstream.cons">[[istringstream.cons]]</a>
2
 
3
  ``` cpp
4
- explicit basic_istringstream(ios_base::openmode which = ios_base::in);
5
  ```
6
 
7
- *Effects:* Constructs an object of class
8
- `basic_istringstream<charT, traits>`, initializing the base class with
9
- `basic_istream(&sb)` and initializing `sb` with
10
- `basic_stringbuf<charT, traits, Allocator>(which | ios_base::in))` ([[stringbuf.cons]]).
11
 
12
  ``` cpp
13
  explicit basic_istringstream(
14
- const basic_string<charT, traits, Allocator>& str,
15
  ios_base::openmode which = ios_base::in);
16
  ```
17
 
18
- *Effects:* Constructs an object of class
19
- `basic_istringstream<charT, traits>`, initializing the base class with
20
- `basic_istream(&sb)` and initializing `sb` with
21
- `basic_stringbuf<charT, traits, Allocator>(str, which | ios_base::in))` ([[stringbuf.cons]]).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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`. Next `basic_istream<charT, traits>::set_rdbuf(&sb)`
30
- is called to install the contained `basic_stringbuf`.
 
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