|
3915 | 3915 | \tcode{long} |
3916 | 3916 | but excluding e.g. |
3917 | 3917 | \tcode{char}). |
3918 | | -Similarly, the term |
3919 | | -\defn{promoted arithmetic type} |
3920 | | -refers to floating-point types plus promoted integral types. |
3921 | 3918 | \begin{note} |
3922 | | -In all cases where a promoted integral type or promoted arithmetic type is |
| 3919 | +In all cases where a promoted integral type is |
3923 | 3920 | required, an operand of enumeration type will be acceptable by way of the |
3924 | 3921 | integral promotions. |
3925 | 3922 | \end{note} |
|
3993 | 3990 | \end{codeblock} |
3994 | 3991 |
|
3995 | 3992 | \pnum |
3996 | | -For every promoted arithmetic type |
3997 | | -\tcode{\placeholder{T}}, |
| 3993 | +For every floating-point or promoted integral type \tcode{\placeholder{T}}, |
3998 | 3994 | there exist candidate operator functions of the form |
3999 | 3995 | \begin{codeblock} |
4000 | 3996 | @\placeholder{T}@ operator+(@\placeholder{T}@); |
|
4032 | 4028 | determination of the operator's result type. |
4033 | 4029 |
|
4034 | 4030 | \pnum |
4035 | | -For every pair of promoted arithmetic types |
4036 | | -\tcode{\placeholder{L}} |
4037 | | -and |
4038 | | -\tcode{\placeholder{R}}, |
| 4031 | +For every pair of types \tcode{\placeholder{L}} and \tcode{\placeholder{R}}, |
| 4032 | +where \tcode{\placeholder{L}} and \tcode{\placeholder{R}} are each |
| 4033 | +floating-point or promoted integral types, |
4039 | 4034 | there exist candidate operator functions of the form |
4040 | 4035 | \begin{codeblock} |
4041 | 4036 | @\placeholder{LR}@ operator*(@\placeholder{L}@, @\placeholder{R}@); |
|
4140 | 4135 |
|
4141 | 4136 | \pnum |
4142 | 4137 | For every triple |
4143 | | -(\tcode{\placeholder{L}}, |
4144 | | -\cvqual{vq}, |
4145 | | -\tcode{\placeholder{R}}), |
4146 | | -where |
4147 | | -\tcode{\placeholder{L}} |
4148 | | -is an arithmetic type, |
4149 | | -and |
4150 | | -\tcode{\placeholder{R}} |
4151 | | -is a promoted arithmetic type, |
| 4138 | +(\tcode{\placeholder{L}}, \cvqual{vq}, \tcode{\placeholder{R}}), |
| 4139 | +where \tcode{\placeholder{L}} is an arithmetic type, |
| 4140 | +and \tcode{\placeholder{R}} is a floating-point or promoted integral type, |
4152 | 4141 | there exist candidate operator functions of the form |
4153 | 4142 | \begin{codeblock} |
4154 | 4143 | @\cvqual{vq} \placeholder{L}@& operator=(@\cvqual{vq} \placeholder{L}@&, @\placeholder{R}@); |
|
4220 | 4209 | \end{codeblock} |
4221 | 4210 |
|
4222 | 4211 | \pnum |
4223 | | -For every pair of promoted arithmetic types |
4224 | | -\tcode{\placeholder{L}} |
4225 | | -and |
4226 | | -\tcode{\placeholder{R}}, |
| 4212 | +For every pair of types \tcode{\placeholder{L}} and \tcode{\placeholder{R}}, |
| 4213 | +where \tcode{\placeholder{L}} and \tcode{\placeholder{R}} are each |
| 4214 | +floating-point or promoted integral types, |
4227 | 4215 | there exist candidate operator functions of the form |
4228 | 4216 | \begin{codeblock} |
4229 | 4217 | @\placeholder{LR}@ operator?:(bool, @\placeholder{L}@, @\placeholder{R}@); |
|
0 commit comments