File tree Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Expand file tree Collapse file tree 4 files changed +8
-7
lines changed Original file line number Diff line number Diff line change 150150
151151\pnum
152152\begin {note }
153- Class objects can be assigned\iref {over.ass ,class.copy.assign },
153+ Class objects can be assigned\iref {over.assign ,class.copy.assign },
154154passed as arguments to functions\iref {dcl.init,class.copy.ctor }, and
155155returned by functions (except objects of classes for which copying or moving has
156156been restricted; see~\ref {dcl.fct.def.delete } and \ref {class.access }).
18041804Because a copy/move assignment operator is implicitly declared for a class
18051805if not declared by the user,
18061806a base class copy/move assignment operator is always hidden
1807- by the corresponding assignment operator of a derived class\iref {over.ass }.
1807+ by the corresponding assignment operator of a derived class\iref {over.assign }.
18081808\begin {note }
18091809A \grammarterm {using-declaration} in a derived class \tcode {C}
18101810that names an assignment operator from a base class
52235223\end {example }
52245224\begin {note }
52255225\indextext {initialization!overloaded assignment and}%
5226- Overloading of the assignment operator\iref {over.ass }
5226+ Overloading of the assignment operator\iref {over.assign }
52275227has no effect on initialization.
52285228\end {note }
52295229
Original file line number Diff line number Diff line change 74137413\item
74147414an assignment to an object of class type, in which case $ B$
74157415is passed as the argument to the assignment operator function selected by
7416- overload resolution\iref {over.ass ,over.match }.
7416+ overload resolution\iref {over.assign ,over.match }.
74177417\end {itemize }
74187418
74197419\begin {example }
Original file line number Diff line number Diff line change 676676\hdstyle {Subclause} & \hdstyle {Expression} & \hdstyle {As member function} & \hdstyle {As non-member function} \\ \capsep
677677\ref {over.unary } & \tcode {@a} & \tcode {(a).\keyword {operator}@ (\, )} & \tcode {\keyword {operator}@(a)} \\
678678\ref {over.binary } & \tcode {a@b} & \tcode {(a).\keyword {operator}@ (b)} & \tcode {\keyword {operator}@(a, b)} \\
679- \ref {over.ass } & \tcode {a=b} & \tcode {(a).\keyword {operator}= (b)} & \\
679+ \ref {over.assign } & \tcode {a=b} & \tcode {(a).\keyword {operator}= (b)} & \\
680680\ref {over.sub } & \tcode {a[b]} & \tcode {(a).\keyword {operator}[](b)} & \\
681681\ref {over.ref } & \tcode {a->} & \tcode {(a).\keyword {operator}->(\, )} & \\
682682\ref {over.inc } & \tcode {a@} & \tcode {(a).\keyword {operator}@ (0)} & \tcode {\keyword {operator}@(a, 0)} \\
34033403described in the rest of \ref {over.oper }.
34043404
34053405\pnum
3406- Operators not mentioned explicitly in subclauses~\ref {over.ass } through~\ref {over.inc }
3406+ Operators not mentioned explicitly in subclauses~\ref {over.assign } through~\ref {over.inc }
34073407act as ordinary unary and binary
34083408operators obeying the rules of~\ref {over.unary } or~\ref {over.binary }.%
34093409\indextext {overloading!resolution!best viable function|)}%
34843484a relational operator function, or
34853485a three-way comparison operator function.
34863486
3487- \rSec 3[over.ass ]{Simple assignment}
3487+ \rSec 3[over.assign ]{Simple assignment}
34883488\indextext {assignment operator!overloaded}%
34893489\indextext {overloading!assignment operator}
34903490
Original file line number Diff line number Diff line change 103103
104104% https://github.com/cplusplus/draft/pull/7524
105105\movedxref {expr.ass }{expr.assign}
106+ \movedxref {over.ass }{over.assign}
106107
107108% %% Deprecated features.
108109% %% Example:
You can’t perform that action at this time.
0 commit comments