tmp/tmpw3uckr4g/{from.md → to.md}
RENAMED
|
@@ -32,11 +32,13 @@ definition, if they are defined at all.
|
|
| 32 |
[*Note 2*:
|
| 33 |
|
| 34 |
A member function can be declared (but not defined) using a typedef for
|
| 35 |
a function type. The resulting member function has exactly the same type
|
| 36 |
as it would have if the function declarator were provided explicitly,
|
| 37 |
-
see [[dcl.fct]]
|
|
|
|
|
|
|
| 38 |
|
| 39 |
``` cpp
|
| 40 |
typedef void fv();
|
| 41 |
typedef void fvc() const;
|
| 42 |
struct S {
|
|
@@ -47,9 +49,9 @@ struct S {
|
|
| 47 |
fv S::* pmfv1 = &S::memfunc1;
|
| 48 |
fv S::* pmfv2 = &S::memfunc2;
|
| 49 |
fvc S::* pmfv3 = &S::memfunc3;
|
| 50 |
```
|
| 51 |
|
| 52 |
-
|
| 53 |
|
| 54 |
— *end note*]
|
| 55 |
|
|
|
|
| 32 |
[*Note 2*:
|
| 33 |
|
| 34 |
A member function can be declared (but not defined) using a typedef for
|
| 35 |
a function type. The resulting member function has exactly the same type
|
| 36 |
as it would have if the function declarator were provided explicitly,
|
| 37 |
+
see [[dcl.fct]] and [[temp.arg]].
|
| 38 |
+
|
| 39 |
+
[*Example 2*:
|
| 40 |
|
| 41 |
``` cpp
|
| 42 |
typedef void fv();
|
| 43 |
typedef void fvc() const;
|
| 44 |
struct S {
|
|
|
|
| 49 |
fv S::* pmfv1 = &S::memfunc1;
|
| 50 |
fv S::* pmfv2 = &S::memfunc2;
|
| 51 |
fvc S::* pmfv3 = &S::memfunc3;
|
| 52 |
```
|
| 53 |
|
| 54 |
+
— *end example*]
|
| 55 |
|
| 56 |
— *end note*]
|
| 57 |
|