|
165 | 165 | \end{example} |
166 | 166 |
|
167 | 167 | \pnum |
168 | | -\indextext{argument!access checking~and default}% |
| 168 | +\indextext{argument!access checking and default}% |
169 | 169 | \indextext{access control!default argument}% |
170 | 170 | The names in a default argument~(\ref{dcl.fct.default}) are |
171 | 171 | bound at the point of declaration, and access is checked at that |
|
192 | 192 | \end{example} |
193 | 193 |
|
194 | 194 | \rSec1[class.access.spec]{Access specifiers}% |
195 | | -\indextext{access~specifier} |
| 195 | +\indextext{access specifier} |
196 | 196 |
|
197 | 197 | \pnum |
198 | 198 | Member declarations can be labeled by an |
|
279 | 279 | \end{example} |
280 | 280 |
|
281 | 281 | \rSec1[class.access.base]{Accessibility of base classes and base class members}% |
282 | | -\indextext{access control!base~class}% |
283 | | -\indextext{access~specifier}% |
284 | | -\indextext{base~class!\idxcode{private}}% |
285 | | -\indextext{base~class!\idxcode{protected}}% |
286 | | -\indextext{base~class!\idxcode{public}} |
| 282 | +\indextext{access control!base class}% |
| 283 | +\indextext{access specifier}% |
| 284 | +\indextext{base class!\idxcode{private}}% |
| 285 | +\indextext{base class!\idxcode{protected}}% |
| 286 | +\indextext{base class!\idxcode{public}} |
287 | 287 |
|
288 | 288 | \pnum |
289 | 289 | If a class is declared to be a base class (Clause~\ref{class.derived}) for another class using the |
|
604 | 604 | \begin{example} |
605 | 605 | the following example illustrates the differences between |
606 | 606 | members and friends: |
607 | | -\indextext{friend function!member~function~and}% |
| 607 | +\indextext{friend function!member function and}% |
608 | 608 | \indextext{example!friend function}% |
609 | | -\indextext{example!member~function}% |
| 609 | +\indextext{example!member function}% |
610 | 610 |
|
611 | 611 | \begin{codeblock} |
612 | 612 | class X { |
|
628 | 628 | \end{example} |
629 | 629 |
|
630 | 630 | \pnum |
631 | | -\indextext{friend!class access~and}% |
| 631 | +\indextext{friend!class access and}% |
632 | 632 | Declaring a class to be a friend implies that the names of private and |
633 | 633 | protected members from the class granting friendship can be accessed in the |
634 | 634 | \grammarterm{base-specifier}{s} and member declarations of the befriended |
|
715 | 715 | \end{example} |
716 | 716 |
|
717 | 717 | \pnum |
718 | | -\indextext{friend function!linkage~of}% |
| 718 | +\indextext{friend function!linkage of}% |
719 | 719 | A function first declared in a friend declaration |
720 | 720 | has the linkage of the namespace of which it is a member~(\ref{basic.link}). |
721 | 721 | Otherwise, the function retains its previous linkage~(\ref{dcl.stc}). |
722 | 722 |
|
723 | 723 | \pnum |
724 | | -\indextext{declaration!overloaded~name~and \tcode{friend}}% |
| 724 | +\indextext{declaration!overloaded name and \tcode{friend}}% |
725 | 725 | When a |
726 | 726 | \tcode{friend} |
727 | 727 | declaration refers to an overloaded name or operator, only the function specified |
|
773 | 773 | of a friend declaration. |
774 | 774 |
|
775 | 775 | \pnum |
776 | | -\indextext{friend!access~specifier~and}% |
| 776 | +\indextext{friend!access specifier and}% |
777 | 777 | A name nominated by a friend declaration shall be accessible in the scope of the |
778 | 778 | class containing the friend declaration. |
779 | 779 | The meaning of the friend declaration is the same whether the friend declaration |
|
786 | 786 | \grammarterm{member-specification}. |
787 | 787 |
|
788 | 788 | \pnum |
789 | | -\indextext{friend!inheritance~and}% |
| 789 | +\indextext{friend!inheritance and}% |
790 | 790 | Friendship is neither inherited nor transitive. |
791 | 791 | \begin{example} |
792 | 792 |
|
|
817 | 817 | \end{example} |
818 | 818 |
|
819 | 819 | \pnum |
820 | | -\indextext{local~class!friend}% |
821 | | -\indextext{friend!local~class~and}% |
| 820 | +\indextext{local class!friend}% |
| 821 | +\indextext{friend!local class and}% |
822 | 822 | If a friend declaration appears in a local class~(\ref{class.local}) and the |
823 | 823 | name specified is an unqualified name, a prior declaration is looked |
824 | 824 | up without considering scopes that are outside the innermost enclosing |
|
993 | 993 | The members of an enclosing class have no special access to members of a nested |
994 | 994 | class; the usual access rules (Clause~\ref{class.access}) shall be obeyed. |
995 | 995 | \begin{example} |
996 | | -\indextext{example!nested~class definition}% |
| 996 | +\indextext{example!nested class definition}% |
997 | 997 |
|
998 | 998 | \begin{codeblock} |
999 | 999 | class E { |
|
0 commit comments