From 33e89070aabfc3ce00f19507c35c47d1db60490d Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 29 Aug 2025 14:05:24 +0800 Subject: [PATCH 1/2] [class.copy.ctor] Tweak text style and indexing --- source/classes.tex | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index a1287851d4..2d1fdf662d 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -1474,16 +1474,12 @@ \rSec3[class.copy.ctor]{Copy/move constructors}% \pnum -\indextext{constructor!copy|(}% -\indextext{constructor!move|(}% \indextext{copy!class object|see{constructor, copy}}% -\indextext{move!class object|see{constructor, move}}% A non-template constructor for class \tcode{X} is a -copy -constructor if its first parameter is of type +\defnadj{copy}{constructor} if its first parameter is of type \tcode{X\&}, \tcode{const X\&}, \tcode{volatile X\&} @@ -1509,7 +1505,8 @@ \end{example} \pnum -A non-template constructor for class \tcode{X} is a move constructor if its +\indextext{move!class object|see{constructor, move}}% +A non-template constructor for class \tcode{X} is a \defnadj{move}{constructor} if its first parameter is of type \tcode{X\&\&}, \tcode{const X\&\&}, \tcode{volatile X\&\&}, or \tcode{const volatile X\&\&}, and either there are no other parameters or else all other parameters have default From f5cfc3102c1d04a836579ac7a5b29f47bd8d729d Mon Sep 17 00:00:00 2001 From: "A. Jiang" Date: Fri, 29 Aug 2025 14:05:52 +0800 Subject: [PATCH 2/2] [class.copy.assign] Tweak style and indexing, remove "user-declared" --- source/classes.tex | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/source/classes.tex b/source/classes.tex index 2d1fdf662d..87fb8d0bbd 100644 --- a/source/classes.tex +++ b/source/classes.tex @@ -1782,14 +1782,10 @@ \rSec2[class.copy.assign]{Copy/move assignment operator}% \pnum -\indextext{assignment operator!copy|(}% -\indextext{assignment operator!move|(}% \indextext{special member function|see{assignment operator}}% \indextext{copy!class object|see{assignment operator, copy}}% -\indextext{move!class object|see{assignment operator, move}}% \indextext{operator!copy assignment|see{assignment operator, copy}}% -\indextext{operator!move assignment|see{assignment operator, move}}% -A user-declared \term{copy} assignment operator \tcode{X::operator=} is a +A \defnadj{copy}{assignment operator} \tcode{X::operator=} is a non-static non-template member function of class \tcode{X} with exactly one non-object parameter of type \tcode{X}, \tcode{X\&}, \tcode{const X\&}, \tcode{volatile X\&}, or \tcode{const volatile X\&}. @@ -1870,7 +1866,9 @@ \end{codeblock} \pnum -A user-declared move assignment operator \tcode{X::operator=} is +\indextext{move!class object|see{assignment operator, move}}% +\indextext{operator!move assignment|see{assignment operator, move}}% +A \defnadj{move}{assignment operator} \tcode{X::operator=} is a non-static non-template member function of class \tcode{X} with exactly one non-object parameter of type \tcode{X\&\&}, \tcode{const X\&\&}, \tcode{volatile X\&\&}, or \tcode{const volatile X\&\&}.