From Jason Turner

[ios.types]

Diff to HTML by rtfpessoa

tmp/tmppq6pcz9i/{from.md → to.md} RENAMED
@@ -15,11 +15,11 @@ namespace std {
15
  An implementation is permitted to define `ios_base::failure` as a
16
  synonym for a class with equivalent functionality to class
17
  `ios_base::failure` shown in this subclause.
18
 
19
  [*Note 1*: When `ios_base::failure` is a synonym for another type, that
20
- type is required to provide a nested type `failure` to emulate the
21
  injected-class-name. — *end note*]
22
 
23
  The class `failure` defines the base class for the types of all objects
24
  thrown as exceptions, by functions in the iostreams library, to report
25
  errors detected during stream buffer operations.
@@ -159,27 +159,19 @@ namespace std {
159
  public:
160
  Init();
161
  Init(const Init&) = default;
162
  ~Init();
163
  Init& operator=(const Init&) = default;
164
-
165
- private:
166
- static int init_cnt; // exposition only
167
  };
168
  }
169
  ```
170
 
171
  The class `Init` describes an object whose construction ensures the
172
  construction of the eight objects declared in `<iostream>`
173
  [[iostream.objects]] that associate file stream buffers with the
174
  standard C streams provided for by the functions declared in `<cstdio>`.
175
 
176
- For the sake of exposition, the maintained data is presented here as:
177
-
178
- - `static int init_cnt`, counts the number of constructor and destructor
179
- calls for class `Init`, initialized to zero.
180
-
181
  ``` cpp
182
  Init();
183
  ```
184
 
185
  *Effects:* Constructs and initializes the objects `cin`, `cout`, `cerr`,
 
15
  An implementation is permitted to define `ios_base::failure` as a
16
  synonym for a class with equivalent functionality to class
17
  `ios_base::failure` shown in this subclause.
18
 
19
  [*Note 1*: When `ios_base::failure` is a synonym for another type, that
20
+ type needs to provide a nested type `failure` to emulate the
21
  injected-class-name. — *end note*]
22
 
23
  The class `failure` defines the base class for the types of all objects
24
  thrown as exceptions, by functions in the iostreams library, to report
25
  errors detected during stream buffer operations.
 
159
  public:
160
  Init();
161
  Init(const Init&) = default;
162
  ~Init();
163
  Init& operator=(const Init&) = default;
 
 
 
164
  };
165
  }
166
  ```
167
 
168
  The class `Init` describes an object whose construction ensures the
169
  construction of the eight objects declared in `<iostream>`
170
  [[iostream.objects]] that associate file stream buffers with the
171
  standard C streams provided for by the functions declared in `<cstdio>`.
172
 
 
 
 
 
 
173
  ``` cpp
174
  Init();
175
  ```
176
 
177
  *Effects:* Constructs and initializes the objects `cin`, `cout`, `cerr`,