tmp/tmpamlx84ra/{from.md → to.md}
RENAMED
|
@@ -25,17 +25,23 @@ explicit basic_fstream(
|
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
explicit basic_fstream(
|
| 28 |
const string& s,
|
| 29 |
ios_base::openmode mode = ios_base::in | ios_base::out);
|
| 30 |
-
explicit basic_fstream(
|
| 31 |
-
const filesystem::path& s,
|
| 32 |
-
ios_base::openmode mode = ios_base::in | ios_base::out);
|
| 33 |
```
|
| 34 |
|
| 35 |
*Effects:* Equivalent to: `basic_fstream(s.c_str(), mode)`.
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
``` cpp
|
| 38 |
basic_fstream(basic_fstream&& rhs);
|
| 39 |
```
|
| 40 |
|
| 41 |
*Effects:* Move constructs the base class, and the contained
|
|
|
|
| 25 |
|
| 26 |
``` cpp
|
| 27 |
explicit basic_fstream(
|
| 28 |
const string& s,
|
| 29 |
ios_base::openmode mode = ios_base::in | ios_base::out);
|
|
|
|
|
|
|
|
|
|
| 30 |
```
|
| 31 |
|
| 32 |
*Effects:* Equivalent to: `basic_fstream(s.c_str(), mode)`.
|
| 33 |
|
| 34 |
+
``` cpp
|
| 35 |
+
template<class T>
|
| 36 |
+
explicit basic_fstream(const T& s, ios_base::openmode mode = ios_base::in | ios_base::out);
|
| 37 |
+
```
|
| 38 |
+
|
| 39 |
+
*Constraints:* `is_same_v<T, filesystem::path>` is `true`.
|
| 40 |
+
|
| 41 |
+
*Effects:* Equivalent to: `basic_fstream(s.c_str(), mode)`.
|
| 42 |
+
|
| 43 |
``` cpp
|
| 44 |
basic_fstream(basic_fstream&& rhs);
|
| 45 |
```
|
| 46 |
|
| 47 |
*Effects:* Move constructs the base class, and the contained
|