From Jason Turner

[fstream.syn]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpbha1taum/{from.md → to.md} +18 -2
tmp/tmpbha1taum/{from.md → to.md} RENAMED
@@ -2,25 +2,41 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  template<class charT, class traits = char_traits<charT>>
6
  class basic_filebuf;
 
 
 
 
7
  using filebuf = basic_filebuf<char>;
8
  using wfilebuf = basic_filebuf<wchar_t>;
9
 
10
  template<class charT, class traits = char_traits<charT>>
11
  class basic_ifstream;
 
 
 
 
12
  using ifstream = basic_ifstream<char>;
13
  using wifstream = basic_ifstream<wchar_t>;
14
 
15
  template<class charT, class traits = char_traits<charT>>
16
  class basic_ofstream;
 
 
 
 
17
  using ofstream = basic_ofstream<char>;
18
  using wofstream = basic_ofstream<wchar_t>;
19
 
20
  template<class charT, class traits = char_traits<charT>>
21
  class basic_fstream;
 
 
 
 
22
  using fstream = basic_fstream<char>;
23
  using wfstream = basic_fstream<wchar_t>;
24
  }
25
  ```
26
 
@@ -33,11 +49,11 @@ or sink of bytes. In an environment that uses a large character set, the
33
  file typically holds multibyte character sequences and the
34
  `basic_filebuf` object converts those multibyte sequences into wide
35
  character sequences. — *end note*]
36
 
37
  In subclause  [[file.streams]], member functions taking arguments of
38
- `const filesystem::path::value_type*` are only be provided on systems
39
- where `filesystem::path::value_type` [[fs.class.path]] is not `char`.
40
 
41
  [*Note 2*: These functions enable class `path` support for systems with
42
  a wide native path character type, such as `wchar_t`. — *end note*]
43
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  template<class charT, class traits = char_traits<charT>>
6
  class basic_filebuf;
7
+
8
+ template<class charT, class traits>
9
+ void swap(basic_filebuf<charT, traits>& x, basic_filebuf<charT, traits>& y);
10
+
11
  using filebuf = basic_filebuf<char>;
12
  using wfilebuf = basic_filebuf<wchar_t>;
13
 
14
  template<class charT, class traits = char_traits<charT>>
15
  class basic_ifstream;
16
+
17
+ template<class charT, class traits>
18
+ void swap(basic_ifstream<charT, traits>& x, basic_ifstream<charT, traits>& y);
19
+
20
  using ifstream = basic_ifstream<char>;
21
  using wifstream = basic_ifstream<wchar_t>;
22
 
23
  template<class charT, class traits = char_traits<charT>>
24
  class basic_ofstream;
25
+
26
+ template<class charT, class traits>
27
+ void swap(basic_ofstream<charT, traits>& x, basic_ofstream<charT, traits>& y);
28
+
29
  using ofstream = basic_ofstream<char>;
30
  using wofstream = basic_ofstream<wchar_t>;
31
 
32
  template<class charT, class traits = char_traits<charT>>
33
  class basic_fstream;
34
+
35
+ template<class charT, class traits>
36
+ void swap(basic_fstream<charT, traits>& x, basic_fstream<charT, traits>& y);
37
+
38
  using fstream = basic_fstream<char>;
39
  using wfstream = basic_fstream<wchar_t>;
40
  }
41
  ```
42
 
 
49
  file typically holds multibyte character sequences and the
50
  `basic_filebuf` object converts those multibyte sequences into wide
51
  character sequences. — *end note*]
52
 
53
  In subclause  [[file.streams]], member functions taking arguments of
54
+ `const filesystem::path::value_type*` are only provided on systems where
55
+ `filesystem::path::value_type` [[fs.class.path]] is not `char`.
56
 
57
  [*Note 2*: These functions enable class `path` support for systems with
58
  a wide native path character type, such as `wchar_t`. — *end note*]
59