You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/standard-library/filesystem.md
+3-4Lines changed: 3 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,8 +14,7 @@ Include the header <filesystem> for access to classes and functions that mani
14
14
15
15
```cpp
16
16
#include<filesystem>// C++17 standard header file name
17
-
18
-
#include<experimental/filesystem>// C++ experimental TS header file name
17
+
#include<experimental/filesystem>// Header file for pre-standard implementation
19
18
usingnamespacestd::experimental::filesystem::v1;
20
19
```
21
20
@@ -75,9 +74,9 @@ Common to both systems is the structure imposed on a pathname once you get past
75
74
76
75
- The extension is `.ext`.
77
76
78
-
A minor difference is the *preferred separator* between the sequence of directories in a pathname. Both operating systems let you write a forward slash `/`, but in some contexts Windows prefers a backslash `\`.
77
+
A minor difference is the preferred separator between the sequence of directories in a pathname. Both operating systems let you write a forward slash `/`, but in some contexts Windows prefers a backslash `\`. The implementation stores its preferred separator in the static constexpr data member `preferred_separator` in `path`.
79
78
80
-
Finally, `path` objects have an important feature: You can use them wherever a filename argument is required in the classes defined in the header \<fstream>.
79
+
Finally, `path` objects have an important feature: You can use them wherever a filename argument is required in the classes defined in the header [\<fstream>](fstream.md).
81
80
82
81
For more information and code examples, see [File system navigation (C++)](../standard-library/file-system-navigation.md).
0 commit comments