From Jason Turner

[over.inc]

Diff to HTML by rtfpessoa

Files changed (1) hide show
  1. tmp/tmpap98a3ff/{from.md → to.md} +11 -12
tmp/tmpap98a3ff/{from.md → to.md} RENAMED
@@ -1,17 +1,16 @@
1
  ### Increment and decrement <a id="over.inc">[[over.inc]]</a>
2
 
3
- The user-defined function called `operator++` implements the prefix and
4
- postfix `++` operator. If this function is a non-static member function
5
- with no parameters, or a non-member function with one parameter, it
6
- defines the prefix increment operator `++` for objects of that type. If
7
- the function is a non-static member function with one parameter (which
8
- shall be of type `int`) or a non-member function with two parameters
9
- (the second of which shall be of type `int`), it defines the postfix
10
- increment operator `++` for objects of that type. When the postfix
11
- increment is called as a result of using the `++` operator, the `int`
12
- argument will have value zero.[^12]
13
 
14
  [*Example 1*:
15
 
16
  ``` cpp
17
  struct X {
@@ -36,8 +35,8 @@ void f(X a, Y b) {
36
  }
37
  ```
38
 
39
  — *end example*]
40
 
41
- The prefix and postfix decrement operators `-{-}` are handled
42
- analogously.
43
 
 
1
  ### Increment and decrement <a id="over.inc">[[over.inc]]</a>
2
 
3
+ An *increment operator function* is a function named `operator++`. If
4
+ this function is a non-static member function with no parameters, or a
5
+ non-member function with one parameter, it defines the prefix increment
6
+ operator `++` for objects of that type. If the function is a non-static
7
+ member function with one parameter (which shall be of type `int`) or a
8
+ non-member function with two parameters (the second of which shall be of
9
+ type `int`), it defines the postfix increment operator `++` for objects
10
+ of that type. When the postfix increment is called as a result of using
11
+ the `++` operator, the `int` argument will have value zero.[^11]
 
12
 
13
  [*Example 1*:
14
 
15
  ``` cpp
16
  struct X {
 
35
  }
36
  ```
37
 
38
  — *end example*]
39
 
40
+ A *decrement operator function* is a function named `operator\dcr` and
41
+ is handled analogously to an increment operator function.
42