From Jason Turner

[std.manip]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmp130gig2y/{from.md → to.md} +23 -23
tmp/tmp130gig2y/{from.md → to.md} RENAMED
@@ -8,59 +8,59 @@ its derived classes.
8
  unspecified resetiosflags(ios_base::fmtflags mask);
9
  ```
10
 
11
  *Returns:* An object of unspecified type such that if `out` is an object
12
  of type `basic_ostream<charT, traits>` then the expression
13
- `out << resetiosflags(mask)` behaves as if it called `f(out, mask)`, or
14
  if `in` is an object of type `basic_istream<charT, traits>` then the
15
- expression `in >> resetiosflags(mask)` behaves as if it called
16
- `f(in, mask)`, where the function `f` is defined as:[^38]
17
 
18
  ``` cpp
19
  void f(ios_base& str, ios_base::fmtflags mask) {
20
  // reset specified flags
21
  str.setf(ios_base::fmtflags(0), mask);
22
  }
23
  ```
24
 
25
- The expression `out << resetiosflags(mask)` shall have type
26
  `basic_ostream<charT, traits>&` and value `out`. The expression
27
- `in >> resetiosflags(mask)` shall have type
28
  `basic_istream<charT, traits>&` and value `in`.
29
 
30
  ``` cpp
31
  unspecified setiosflags(ios_base::fmtflags mask);
32
  ```
33
 
34
  *Returns:* An object of unspecified type such that if `out` is an object
35
  of type `basic_ostream<charT, traits>` then the expression
36
- `out << setiosflags(mask)` behaves as if it called `f(out, mask)`, or if
37
  `in` is an object of type `basic_istream<charT, traits>` then the
38
- expression `in >> setiosflags(mask)` behaves as if it called
39
  `f(in, mask)`, where the function `f` is defined as:
40
 
41
  ``` cpp
42
  void f(ios_base& str, ios_base::fmtflags mask) {
43
  // set specified flags
44
  str.setf(mask);
45
  }
46
  ```
47
 
48
- The expression `out << setiosflags(mask)` shall have type
49
  `basic_ostream<charT, traits>&` and value `out`. The expression
50
- `in >> setiosflags(mask)` shall have type `basic_istream<charT,`
51
  `traits>&` and value `in`.
52
 
53
  ``` cpp
54
  unspecified setbase(int base);
55
  ```
56
 
57
  *Returns:* An object of unspecified type such that if `out` is an object
58
  of type `basic_ostream<charT, traits>` then the expression
59
- `out << setbase(base)` behaves as if it called `f(out, base)`, or if
60
  `in` is an object of type `basic_istream<charT, traits>` then the
61
- expression `in >> setbase(base)` behaves as if it called `f(in, base)`,
62
  where the function `f` is defined as:
63
 
64
  ``` cpp
65
  void f(ios_base& str, int base) {
66
  // set basefield
@@ -69,76 +69,76 @@ void f(ios_base& str, int base) {
69
  base == 16 ? ios_base::hex :
70
  ios_base::fmtflags(0), ios_base::basefield);
71
  }
72
  ```
73
 
74
- The expression `out << setbase(base)` shall have type
75
  `basic_ostream<charT, traits>&` and value `out`. The expression
76
- `in >> setbase(base)` shall have type `basic_istream<charT, traits>&`
77
  and value `in`.
78
 
79
  ``` cpp
80
  unspecified setfill(char_type c);
81
  ```
82
 
83
  *Returns:* An object of unspecified type such that if `out` is an object
84
  of type `basic_ostream<charT, traits>` and `c` has type `charT` then the
85
- expression `out << setfill(c)` behaves as if it called `f(out, c)`,
86
  where the function `f` is defined as:
87
 
88
  ``` cpp
89
  template<class charT, class traits>
90
  void f(basic_ios<charT, traits>& str, charT c) {
91
  // set fill character
92
  str.fill(c);
93
  }
94
  ```
95
 
96
- The expression `out << setfill(c)` shall have type
97
  `basic_ostream<charT, traits>&` and value `out`.
98
 
99
  ``` cpp
100
  unspecified setprecision(int n);
101
  ```
102
 
103
  *Returns:* An object of unspecified type such that if `out` is an object
104
  of type `basic_ostream<charT, traits>` then the expression
105
- `out << setprecision(n)` behaves as if it called `f(out, n)`, or if `in`
106
  is an object of type `basic_istream<charT, traits>` then the expression
107
- `in >> setprecision(n)` behaves as if it called `f(in, n)`, where the
108
  function `f` is defined as:
109
 
110
  ``` cpp
111
  void f(ios_base& str, int n) {
112
  // set precision
113
  str.precision(n);
114
  }
115
  ```
116
 
117
- The expression `out << setprecision(n)` shall have type
118
  `basic_ostream<charT, traits>&` and value `out`. The expression
119
- `in >> setprecision(n)` shall have type `basic_istream<charT, traits>&`
120
  and value `in`.
121
 
122
  ``` cpp
123
  unspecified setw(int n);
124
  ```
125
 
126
  *Returns:* An object of unspecified type such that if `out` is an
127
  instance of `basic_ostream<charT, traits>` then the expression
128
- `out << setw(n)` behaves as if it called `f(out, n)`, or if `in` is an
129
  object of type `basic_istream<charT, traits>` then the expression
130
- `in >> setw(n)` behaves as if it called `f(in, n)`, where the function
131
  `f` is defined as:
132
 
133
  ``` cpp
134
  void f(ios_base& str, int n) {
135
  // set width
136
  str.width(n);
137
  }
138
  ```
139
 
140
- The expression `out << setw(n)` shall have type
141
  `basic_ostream<charT, traits>&` and value `out`. The expression
142
- `in >> setw(n)` shall have type `basic_istream<charT, traits>&` and
143
  value `in`.
144
 
 
8
  unspecified resetiosflags(ios_base::fmtflags mask);
9
  ```
10
 
11
  *Returns:* An object of unspecified type such that if `out` is an object
12
  of type `basic_ostream<charT, traits>` then the expression
13
+ `out << resetiosflags(mask)` behaves as if it called `f(out, mask)`, or
14
  if `in` is an object of type `basic_istream<charT, traits>` then the
15
+ expression `in >> resetiosflags(mask)` behaves as if it called
16
+ `f(in, mask)`, where the function `f` is defined as:[^39]
17
 
18
  ``` cpp
19
  void f(ios_base& str, ios_base::fmtflags mask) {
20
  // reset specified flags
21
  str.setf(ios_base::fmtflags(0), mask);
22
  }
23
  ```
24
 
25
+ The expression `out << resetiosflags(mask)` shall have type
26
  `basic_ostream<charT, traits>&` and value `out`. The expression
27
+ `in >> resetiosflags(mask)` shall have type
28
  `basic_istream<charT, traits>&` and value `in`.
29
 
30
  ``` cpp
31
  unspecified setiosflags(ios_base::fmtflags mask);
32
  ```
33
 
34
  *Returns:* An object of unspecified type such that if `out` is an object
35
  of type `basic_ostream<charT, traits>` then the expression
36
+ `out << setiosflags(mask)` behaves as if it called `f(out, mask)`, or if
37
  `in` is an object of type `basic_istream<charT, traits>` then the
38
+ expression `in >> setiosflags(mask)` behaves as if it called
39
  `f(in, mask)`, where the function `f` is defined as:
40
 
41
  ``` cpp
42
  void f(ios_base& str, ios_base::fmtflags mask) {
43
  // set specified flags
44
  str.setf(mask);
45
  }
46
  ```
47
 
48
+ The expression `out << setiosflags(mask)` shall have type
49
  `basic_ostream<charT, traits>&` and value `out`. The expression
50
+ `in >> setiosflags(mask)` shall have type `basic_istream<charT,`
51
  `traits>&` and value `in`.
52
 
53
  ``` cpp
54
  unspecified setbase(int base);
55
  ```
56
 
57
  *Returns:* An object of unspecified type such that if `out` is an object
58
  of type `basic_ostream<charT, traits>` then the expression
59
+ `out << setbase(base)` behaves as if it called `f(out, base)`, or if
60
  `in` is an object of type `basic_istream<charT, traits>` then the
61
+ expression `in >> setbase(base)` behaves as if it called `f(in, base)`,
62
  where the function `f` is defined as:
63
 
64
  ``` cpp
65
  void f(ios_base& str, int base) {
66
  // set basefield
 
69
  base == 16 ? ios_base::hex :
70
  ios_base::fmtflags(0), ios_base::basefield);
71
  }
72
  ```
73
 
74
+ The expression `out << setbase(base)` shall have type
75
  `basic_ostream<charT, traits>&` and value `out`. The expression
76
+ `in >> setbase(base)` shall have type `basic_istream<charT, traits>&`
77
  and value `in`.
78
 
79
  ``` cpp
80
  unspecified setfill(char_type c);
81
  ```
82
 
83
  *Returns:* An object of unspecified type such that if `out` is an object
84
  of type `basic_ostream<charT, traits>` and `c` has type `charT` then the
85
+ expression `out << setfill(c)` behaves as if it called `f(out, c)`,
86
  where the function `f` is defined as:
87
 
88
  ``` cpp
89
  template<class charT, class traits>
90
  void f(basic_ios<charT, traits>& str, charT c) {
91
  // set fill character
92
  str.fill(c);
93
  }
94
  ```
95
 
96
+ The expression `out << setfill(c)` shall have type
97
  `basic_ostream<charT, traits>&` and value `out`.
98
 
99
  ``` cpp
100
  unspecified setprecision(int n);
101
  ```
102
 
103
  *Returns:* An object of unspecified type such that if `out` is an object
104
  of type `basic_ostream<charT, traits>` then the expression
105
+ `out << setprecision(n)` behaves as if it called `f(out, n)`, or if `in`
106
  is an object of type `basic_istream<charT, traits>` then the expression
107
+ `in >> setprecision(n)` behaves as if it called `f(in, n)`, where the
108
  function `f` is defined as:
109
 
110
  ``` cpp
111
  void f(ios_base& str, int n) {
112
  // set precision
113
  str.precision(n);
114
  }
115
  ```
116
 
117
+ The expression `out << setprecision(n)` shall have type
118
  `basic_ostream<charT, traits>&` and value `out`. The expression
119
+ `in >> setprecision(n)` shall have type `basic_istream<charT, traits>&`
120
  and value `in`.
121
 
122
  ``` cpp
123
  unspecified setw(int n);
124
  ```
125
 
126
  *Returns:* An object of unspecified type such that if `out` is an
127
  instance of `basic_ostream<charT, traits>` then the expression
128
+ `out << setw(n)` behaves as if it called `f(out, n)`, or if `in` is an
129
  object of type `basic_istream<charT, traits>` then the expression
130
+ `in >> setw(n)` behaves as if it called `f(in, n)`, where the function
131
  `f` is defined as:
132
 
133
  ``` cpp
134
  void f(ios_base& str, int n) {
135
  // set width
136
  str.width(n);
137
  }
138
  ```
139
 
140
+ The expression `out << setw(n)` shall have type
141
  `basic_ostream<charT, traits>&` and value `out`. The expression
142
+ `in >> setw(n)` shall have type `basic_istream<charT, traits>&` and
143
  value `in`.
144