From Jason Turner

[ostream::sentry]

Diff to HTML by rtfpessoa

tmp/tmpftinglas/{from.md → to.md} RENAMED
@@ -2,11 +2,11 @@
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT,class traits = char_traits<charT> >
6
  class basic_ostream<charT,traits>::sentry {
7
- bool ok_; // exposition onlyr
8
  public:
9
  explicit sentry(basic_ostream<charT,traits>& os);
10
  ~sentry();
11
  explicit operator bool() const { return ok_; }
12
 
@@ -22,16 +22,16 @@ exception safe prefix and suffix operations.
22
  ``` cpp
23
  explicit sentry(basic_ostream<charT,traits>& os);
24
  ```
25
 
26
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
27
- If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^29]
28
 
29
  If, after any preparation is completed, `os.good()` is `true`,
30
  `ok_ == true` otherwise, `ok_ == false`. During preparation, the
31
  constructor may call `setstate(failbit)` (which may throw
32
- `ios_base::failure` ([[iostate.flags]]))[^30]
33
 
34
  ``` cpp
35
  ~sentry();
36
  ```
37
 
 
2
 
3
  ``` cpp
4
  namespace std {
5
  template <class charT,class traits = char_traits<charT> >
6
  class basic_ostream<charT,traits>::sentry {
7
+ bool ok_; // exposition only
8
  public:
9
  explicit sentry(basic_ostream<charT,traits>& os);
10
  ~sentry();
11
  explicit operator bool() const { return ok_; }
12
 
 
22
  ``` cpp
23
  explicit sentry(basic_ostream<charT,traits>& os);
24
  ```
25
 
26
  If `os.good()` is nonzero, prepares for formatted or unformatted output.
27
+ If `os.tie()` is not a null pointer, calls `os.tie()->flush()`.[^30]
28
 
29
  If, after any preparation is completed, `os.good()` is `true`,
30
  `ok_ == true` otherwise, `ok_ == false`. During preparation, the
31
  constructor may call `setstate(failbit)` (which may throw
32
+ `ios_base::failure` ([[iostate.flags]]))[^31]
33
 
34
  ``` cpp
35
  ~sentry();
36
  ```
37