tmp/tmp1tzzkqm5/{from.md → to.md}
RENAMED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
-
## Access specifiers <a id="class.access.spec">[[class.access.spec]]</a>
|
| 2 |
|
| 3 |
-
Member declarations can be labeled by an *access-specifier* (
|
| 4 |
[[class.derived]]):
|
| 5 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 6 |
An *access-specifier* specifies the access rules for members following
|
| 7 |
it until the end of the class or until another *access-specifier* is
|
| 8 |
encountered.
|
| 9 |
|
| 10 |
[*Example 1*:
|
|
@@ -38,11 +42,11 @@ public:
|
|
| 38 |
```
|
| 39 |
|
| 40 |
— *end example*]
|
| 41 |
|
| 42 |
[*Note 1*: The effect of access control on the order of allocation of
|
| 43 |
-
data members is
|
| 44 |
|
| 45 |
When a member is redeclared within its class definition, the access
|
| 46 |
specified at its redeclaration shall be the same as at its initial
|
| 47 |
declaration.
|
| 48 |
|
|
|
|
| 1 |
+
### Access specifiers <a id="class.access.spec">[[class.access.spec]]</a>
|
| 2 |
|
| 3 |
+
Member declarations can be labeled by an *access-specifier* (
|
| 4 |
[[class.derived]]):
|
| 5 |
|
| 6 |
+
``` bnf
|
| 7 |
+
access-specifier ':' member-specificationₒₚₜ
|
| 8 |
+
```
|
| 9 |
+
|
| 10 |
An *access-specifier* specifies the access rules for members following
|
| 11 |
it until the end of the class or until another *access-specifier* is
|
| 12 |
encountered.
|
| 13 |
|
| 14 |
[*Example 1*:
|
|
|
|
| 42 |
```
|
| 43 |
|
| 44 |
— *end example*]
|
| 45 |
|
| 46 |
[*Note 1*: The effect of access control on the order of allocation of
|
| 47 |
+
data members is specified in [[expr.rel]]. — *end note*]
|
| 48 |
|
| 49 |
When a member is redeclared within its class definition, the access
|
| 50 |
specified at its redeclaration shall be the same as at its initial
|
| 51 |
declaration.
|
| 52 |
|