From Jason Turner

[depr.ios.members]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpxl_4owzb/{from.md → to.md} +0 -106
tmp/tmpxl_4owzb/{from.md → to.md} RENAMED
@@ -1,106 +0,0 @@
1
- ## Old iostreams members <a id="depr.ios.members">[[depr.ios.members]]</a>
2
-
3
- The following member names are in addition to names specified in Clause 
4
- [[input.output]]:
5
-
6
- ``` cpp
7
- namespace std {
8
- class ios_base {
9
- public:
10
- typedef T1 io_state;
11
- typedef T2 open_mode;
12
- typedef T3 seek_dir;
13
- typedef implementation-defined streamoff;
14
- typedef implementation-defined streampos;
15
- // remainder unchanged
16
- };
17
- }
18
- ```
19
-
20
- The type `io_state` is a synonym for an integer type (indicated here as
21
- `T1` ) that permits certain member functions to overload others on
22
- parameters of type `iostate` and provide the same behavior.
23
-
24
- The type `open_mode` is a synonym for an integer type (indicated here as
25
- `T2` ) that permits certain member functions to overload others on
26
- parameters of type `openmode` and provide the same behavior.
27
-
28
- The type `seek_dir` is a synonym for an integer type (indicated here as
29
- `T3` ) that permits certain member functions to overload others on
30
- parameters of type `seekdir` and provide the same behavior.
31
-
32
- The type `streamoff` is an *implementation-defined* type that satisfies
33
- the requirements of off_type in  [[iostreams.limits.pos]].
34
-
35
- The type `streampos` is an *implementation-defined* type that satisfies
36
- the requirements of pos_type in  [[iostreams.limits.pos]].
37
-
38
- An implementation may provide the following additional member function,
39
- which has the effect of calling `sbumpc()` ([[streambuf.pub.get]]):
40
-
41
- ``` cpp
42
- namespace std {
43
- template<class charT, class traits = char_traits<charT> >
44
- class basic_streambuf {
45
- public:
46
- void stossc();
47
- // remainder unchanged
48
- };
49
- }
50
- ```
51
-
52
- An implementation may provide the following member functions that
53
- overload signatures specified in Clause  [[input.output]]:
54
-
55
- ``` cpp
56
- namespace std {
57
- template<class charT, class traits> class basic_ios {
58
- public:
59
- void clear(io_state state);
60
- void setstate(io_state state);
61
- void exceptions(io_state);
62
- // remainder unchanged
63
- };
64
-
65
- class ios_base {
66
- public:
67
- // remainder unchanged
68
- };
69
-
70
- template<class charT, class traits = char_traits<charT> >
71
- class basic_streambuf {
72
- public:
73
- pos_type pubseekoff(off_type off, ios_base::seek_dir way,
74
- ios_base::open_mode which = ios_base::in | ios_base::out);
75
- pos_type pubseekpos(pos_type sp,
76
- ios_base::open_mode which);
77
- // remainder unchanged
78
- };
79
-
80
- template <class charT, class traits = char_traits<charT> >
81
- class basic_filebuf : public basic_streambuf<charT,traits> {
82
- public:
83
- basic_filebuf<charT,traits>* open
84
- (const char* s, ios_base::open_mode mode);
85
- // remainder unchanged
86
- };
87
-
88
- template <class charT, class traits = char_traits<charT> >
89
- class basic_ifstream : public basic_istream<charT,traits> {
90
- public:
91
- void open(const char* s, ios_base::open_mode mode);
92
- // remainder unchanged
93
- };
94
-
95
- template <class charT, class traits = char_traits<charT> >
96
- class basic_ofstream : public basic_ostream<charT,traits> {
97
- public:
98
- void open(const char* s, ios_base::open_mode mode);
99
- // remainder unchanged
100
- };
101
- }
102
- ```
103
-
104
- The effects of these functions is to call the corresponding member
105
- function specified in Clause  [[input.output]].
106
-