tmp/tmporb2_top/{from.md → to.md}
RENAMED
|
@@ -1,17 +1,17 @@
|
|
| 1 |
### Class member access <a id="over.ref">[[over.ref]]</a>
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
implements the class member access syntax that uses `->`.
|
| 7 |
|
| 8 |
``` bnf
|
| 9 |
-
postfix-expression '->'
|
| 10 |
-
postfix-expression '->' pseudo-destructor-name
|
| 11 |
```
|
| 12 |
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
|
|
|
|
|
|
| 17 |
|
|
|
|
| 1 |
### Class member access <a id="over.ref">[[over.ref]]</a>
|
| 2 |
|
| 3 |
+
A *class member access operator function* is a function named
|
| 4 |
+
`operator->` that is a non-static member function taking no parameters.
|
| 5 |
+
For an expression of the form
|
|
|
|
| 6 |
|
| 7 |
``` bnf
|
| 8 |
+
postfix-expression '->' templateₒₚₜ id-expression
|
|
|
|
| 9 |
```
|
| 10 |
|
| 11 |
+
the operator function is selected by overload resolution
|
| 12 |
+
[[over.match.oper]], and the expression is interpreted as
|
| 13 |
+
|
| 14 |
+
``` bnf
|
| 15 |
+
'(' postfix-expression . operator '->' '('')' ')' '->' templateₒₚₜ id-expression
|
| 16 |
+
```
|
| 17 |
|