From Jason Turner

[over.unary]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmphbh72b0l/{from.md → to.md} +9 -11
tmp/tmphbh72b0l/{from.md → to.md} RENAMED
@@ -1,14 +1,14 @@
1
  ### Unary operators <a id="over.unary">[[over.unary]]</a>
2
 
3
  A *prefix unary operator function* is a function named `operator@` for a
4
  prefix *unary-operator* `@` [[expr.unary.op]] that is either a
5
- non-static member function [[class.mfct]] with no parameters or a
6
- non-member function with one parameter. For a *unary-expression* of the
7
- form `@ cast-expression`, the operator function is selected by overload
8
- resolution [[over.match.oper]]. If a member function is selected, the
9
- expression is interpreted as
10
 
11
  ``` bnf
12
  cast-expression '.' operator '@' '('')'
13
  ```
14
 
@@ -17,14 +17,12 @@ interpreted as
17
 
18
  ``` bnf
19
  operator '@' '(' cast-expression ')'
20
  ```
21
 
22
- [*Note 1*: The operators `++` and `\dcr` [[expr.pre.incr]] are
23
- described in  [[over.inc]]. — *end note*]
24
 
25
- The unary and binary forms of the same operator are considered to have
26
- the same name.
27
-
28
- [*Note 2*: Consequently, a unary operator can hide a binary operator
29
  from an enclosing scope, and vice versa. — *end note*]
30
 
 
1
  ### Unary operators <a id="over.unary">[[over.unary]]</a>
2
 
3
  A *prefix unary operator function* is a function named `operator@` for a
4
  prefix *unary-operator* `@` [[expr.unary.op]] that is either a
5
+ non-static member function [[class.mfct]] with no non-object parameters
6
+ or a non-member function with one parameter. For a *unary-expression* of
7
+ the form `@ cast-expression`, the operator function is selected by
8
+ overload resolution [[over.match.oper]]. If a member function is
9
+ selected, the expression is interpreted as
10
 
11
  ``` bnf
12
  cast-expression '.' operator '@' '('')'
13
  ```
14
 
 
17
 
18
  ``` bnf
19
  operator '@' '(' cast-expression ')'
20
  ```
21
 
22
+ [*Note 1*: The operators `++` and `--` [[expr.pre.incr]] are described
23
+ in  [[over.inc]]. — *end note*]
24
 
25
+ [*Note 2*: The unary and binary forms of the same operator have the
26
+ same name. Consequently, a unary operator can hide a binary operator
 
 
27
  from an enclosing scope, and vice versa. — *end note*]
28