From Jason Turner

[fstream.general]

Diff to HTML by rtfpessoa

tmp/tmpx4msmzj4/{from.md → to.md} RENAMED
@@ -4,14 +4,15 @@
4
  namespace std {
5
  template<class charT, class traits = char_traits<charT>>
6
  class basic_fstream : public basic_iostream<charT, traits> {
7
  public:
8
  using char_type = charT;
9
- using int_type = typename traits::int_type;
10
- using pos_type = typename traits::pos_type;
11
- using off_type = typename traits::off_type;
12
  using traits_type = traits;
 
13
 
14
  // [fstream.cons], constructors
15
  basic_fstream();
16
  explicit basic_fstream(
17
  const char* s,
@@ -33,10 +34,12 @@ namespace std {
33
  // [fstream.swap], swap
34
  void swap(basic_fstream& rhs);
35
 
36
  // [fstream.members], members
37
  basic_filebuf<charT, traits>* rdbuf() const;
 
 
38
  bool is_open() const;
39
  void open(
40
  const char* s,
41
  ios_base::openmode mode = ios_base::in | ios_base::out);
42
  void open(
@@ -59,7 +62,7 @@ namespace std {
59
  The class template `basic_fstream<charT, traits>` supports reading and
60
  writing from named files. It uses a `basic_filebuf<charT, traits>`
61
  object to control the associated sequences. For the sake of exposition,
62
  the maintained data is presented here as:
63
 
64
- - `sb`, the `basic_filebuf` object.
65
 
 
4
  namespace std {
5
  template<class charT, class traits = char_traits<charT>>
6
  class basic_fstream : public basic_iostream<charT, traits> {
7
  public:
8
  using char_type = charT;
9
+ using int_type = traits::int_type;
10
+ using pos_type = traits::pos_type;
11
+ using off_type = traits::off_type;
12
  using traits_type = traits;
13
+ using native_handle_type = basic_filebuf<charT, traits>::native_handle_type;
14
 
15
  // [fstream.cons], constructors
16
  basic_fstream();
17
  explicit basic_fstream(
18
  const char* s,
 
34
  // [fstream.swap], swap
35
  void swap(basic_fstream& rhs);
36
 
37
  // [fstream.members], members
38
  basic_filebuf<charT, traits>* rdbuf() const;
39
+ native_handle_type native_handle() const noexcept;
40
+
41
  bool is_open() const;
42
  void open(
43
  const char* s,
44
  ios_base::openmode mode = ios_base::in | ios_base::out);
45
  void open(
 
62
  The class template `basic_fstream<charT, traits>` supports reading and
63
  writing from named files. It uses a `basic_filebuf<charT, traits>`
64
  object to control the associated sequences. For the sake of exposition,
65
  the maintained data is presented here as:
66
 
67
+ - *`sb`*, the `basic_filebuf` object.
68