tmp/tmpbj951u2_/{from.md → to.md}
RENAMED
|
@@ -3,46 +3,46 @@
|
|
| 3 |
``` cpp
|
| 4 |
basic_ifstream();
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Initializes the base class with
|
| 8 |
-
`basic_istream<charT, traits>(addressof(sb))` [[istream.cons]] and
|
| 9 |
-
with `basic_filebuf<charT, traits>()` [[filebuf.cons]].
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
explicit basic_ifstream(const char* s,
|
| 13 |
ios_base::openmode mode = ios_base::in);
|
| 14 |
explicit basic_ifstream(const filesystem::path::value_type* s,
|
| 15 |
ios_base::openmode mode = ios_base::in); // wide systems only; see [fstream.syn]
|
| 16 |
```
|
| 17 |
|
| 18 |
*Effects:* Initializes the base class with
|
| 19 |
-
`basic_istream<charT, traits>(addressof(sb))` [[istream.cons]] and
|
| 20 |
-
with `basic_filebuf<charT, traits>()` [[filebuf.cons]], then calls
|
| 21 |
`rdbuf()->open(s, mode | ios_base::in)`. If that function returns a null
|
| 22 |
pointer, calls `setstate(failbit)`.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
explicit basic_ifstream(const string& s,
|
| 26 |
ios_base::openmode mode = ios_base::in);
|
| 27 |
```
|
| 28 |
|
| 29 |
-
*Effects:* Equivalent to
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
template<class T>
|
| 33 |
explicit basic_ifstream(const T& s, ios_base::openmode mode = ios_base::in);
|
| 34 |
```
|
| 35 |
|
| 36 |
*Constraints:* `is_same_v<T, filesystem::path>` is `true`.
|
| 37 |
|
| 38 |
-
*Effects:* Equivalent to
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
basic_ifstream(basic_ifstream&& rhs);
|
| 42 |
```
|
| 43 |
|
| 44 |
*Effects:* Move constructs the base class, and the contained
|
| 45 |
`basic_filebuf`. Then calls
|
| 46 |
-
`basic_istream<charT, traits>::set_rdbuf(addressof(sb))` to
|
| 47 |
-
contained `basic_filebuf`.
|
| 48 |
|
|
|
|
| 3 |
``` cpp
|
| 4 |
basic_ifstream();
|
| 5 |
```
|
| 6 |
|
| 7 |
*Effects:* Initializes the base class with
|
| 8 |
+
`basic_istream<charT, traits>(addressof(`*`sb`*`))` [[istream.cons]] and
|
| 9 |
+
*sb* with `basic_filebuf<charT, traits>()` [[filebuf.cons]].
|
| 10 |
|
| 11 |
``` cpp
|
| 12 |
explicit basic_ifstream(const char* s,
|
| 13 |
ios_base::openmode mode = ios_base::in);
|
| 14 |
explicit basic_ifstream(const filesystem::path::value_type* s,
|
| 15 |
ios_base::openmode mode = ios_base::in); // wide systems only; see [fstream.syn]
|
| 16 |
```
|
| 17 |
|
| 18 |
*Effects:* Initializes the base class with
|
| 19 |
+
`basic_istream<charT, traits>(addressof(`*`sb`*`))` [[istream.cons]] and
|
| 20 |
+
*sb* with `basic_filebuf<charT, traits>()` [[filebuf.cons]], then calls
|
| 21 |
`rdbuf()->open(s, mode | ios_base::in)`. If that function returns a null
|
| 22 |
pointer, calls `setstate(failbit)`.
|
| 23 |
|
| 24 |
``` cpp
|
| 25 |
explicit basic_ifstream(const string& s,
|
| 26 |
ios_base::openmode mode = ios_base::in);
|
| 27 |
```
|
| 28 |
|
| 29 |
+
*Effects:* Equivalent to `basic_ifstream(s.c_str(), mode)`.
|
| 30 |
|
| 31 |
``` cpp
|
| 32 |
template<class T>
|
| 33 |
explicit basic_ifstream(const T& s, ios_base::openmode mode = ios_base::in);
|
| 34 |
```
|
| 35 |
|
| 36 |
*Constraints:* `is_same_v<T, filesystem::path>` is `true`.
|
| 37 |
|
| 38 |
+
*Effects:* Equivalent to `basic_ifstream(s.c_str(), mode)`.
|
| 39 |
|
| 40 |
``` cpp
|
| 41 |
basic_ifstream(basic_ifstream&& rhs);
|
| 42 |
```
|
| 43 |
|
| 44 |
*Effects:* Move constructs the base class, and the contained
|
| 45 |
`basic_filebuf`. Then calls
|
| 46 |
+
`basic_istream<charT, traits>::set_rdbuf(addressof(`*`sb`*`))` to
|
| 47 |
+
install the contained `basic_filebuf`.
|
| 48 |
|