Skip to content

Commit 37c76cb

Browse files
jensmaurertkoeppe
authored andcommitted
Do not use code font in the phrases 'constexpr constructor' and 'constexpr function' (#1153)
Fixes #825.
1 parent d703047 commit 37c76cb

File tree

9 files changed

+52
-52
lines changed

9 files changed

+52
-52
lines changed

source/basic.tex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2540,7 +2540,7 @@
25402540
\indextext{initialization!\idxcode{static object}}%
25412541
\indextext{initialization!constant}%
25422542
A \defn{constant initializer} for an object \tcode{o} is an expression that is a
2543-
constant expression, except that it may also invoke \tcode{constexpr} constructors
2543+
constant expression, except that it may also invoke constexpr constructors
25442544
for \tcode{o} and its subobjects even if those objects are of non-literal class
25452545
types. \begin{note} Such a class may have a non-trivial destructor. \end{note}
25462546
\defnx{Constant initialization}{constant initialization} is performed:
@@ -3652,7 +3652,7 @@
36523652
\item it has a trivial destructor,
36533653
\item it is either a closure type~(\ref{expr.prim.lambda}),
36543654
an aggregate type~(\ref{dcl.init.aggr}), or
3655-
has at least one \tcode{constexpr} constructor or constructor template
3655+
has at least one constexpr constructor or constructor template
36563656
(possibly inherited~(\ref{namespace.udecl}) from a base class)
36573657
that is not a copy or move constructor,
36583658
\item if it is a union, at least one of its non-static data members is

source/declarations.tex

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@
771771
\pnum
772772
\indextext{specifier!\idxcode{constexpr}!function}
773773
\indextext{constexpr function}
774-
The definition of a \tcode{constexpr} function shall satisfy the following
774+
The definition of a constexpr function shall satisfy the following
775775
requirements:
776776

777777
\begin{itemize}
@@ -838,7 +838,7 @@
838838

839839
\pnum
840840
\indextext{specifier!\idxcode{constexpr}!constructor}%
841-
The definition of a \tcode{constexpr} constructor shall satisfy the
841+
The definition of a constexpr constructor shall satisfy the
842842
following requirements:
843843
\begin{itemize}
844844
\item
@@ -861,7 +861,7 @@
861861
\item
862862
either its \grammarterm{function-body} shall be \tcode{= default}, or the \grammarterm{compound-statement} of its \grammarterm{function-body}
863863
shall satisfy the requirements for a \grammarterm{function-body} of a
864-
\tcode{constexpr} function;
864+
constexpr function;
865865

866866
\item
867867
every non-variant non-static data member and base class subobject
@@ -877,7 +877,7 @@
877877

878878
\item
879879
for a non-delegating constructor, every constructor selected to initialize non-static
880-
data members and base class subobjects shall be a \tcode{constexpr} constructor;
880+
data members and base class subobjects shall be a constexpr constructor;
881881

882882
\item
883883
for a delegating constructor, the target constructor shall be a \tcode{constexpr}
@@ -895,7 +895,7 @@
895895
\end{example}
896896

897897
\pnum
898-
For a \tcode{constexpr} function or \tcode{constexpr} constructor
898+
For a constexpr function or constexpr constructor
899899
that is neither defaulted nor a template,
900900
if no argument values exist such that
901901
an invocation of the function or constructor could be an evaluated subexpression of a core
@@ -924,22 +924,22 @@
924924
\end{example}
925925

926926
\pnum
927-
If the instantiated template specialization of a \tcode{constexpr} function
927+
If the instantiated template specialization of a constexpr function
928928
template
929929
or member function of a class template
930930
would fail to satisfy the requirements for a \tcode{constexpr}
931-
function or \tcode{constexpr} constructor,
932-
that specialization is still a \tcode{constexpr} function or \tcode{constexpr}
931+
function or constexpr constructor,
932+
that specialization is still a constexpr function or \tcode{constexpr}
933933
constructor, even though a call to such a function cannot appear in a constant
934934
expression. If no specialization of the template would satisfy the
935-
requirements for a \tcode{constexpr} function or \tcode{constexpr} constructor
935+
requirements for a constexpr function or constexpr constructor
936936
when considered as a non-template function or constructor, the template is
937937
ill-formed; no diagnostic
938938
required.
939939

940940
\pnum
941-
A call to a \tcode{constexpr} function produces the same result as a call to an equivalent
942-
non-\tcode{constexpr} function in all respects except that
941+
A call to a constexpr function produces the same result as a call to an equivalent
942+
non-constexpr function in all respects except that
943943
\begin{itemize}
944944
\item
945945
a call to a \tcode{constexpr}
@@ -950,7 +950,7 @@
950950

951951
\pnum
952952
The \tcode{constexpr} specifier has no
953-
effect on the type of a \tcode{constexpr} function or a \tcode{constexpr} constructor. \begin{example}
953+
effect on the type of a constexpr function or a constexpr constructor. \begin{example}
954954
\begin{codeblock}
955955
constexpr int bar(int x, int y) // OK
956956
{ return x + y + x*y; }

source/expressions.tex

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4883,26 +4883,26 @@
48834883
\begin{itemize}
48844884
\item
48854885
\tcode{this}~(\ref{expr.prim.this}), except in a \tcode{constexpr}
4886-
function or a \tcode{constexpr} constructor that is being evaluated as part
4886+
function or a constexpr constructor that is being evaluated as part
48874887
of \tcode{e};
48884888

48894889
\item
48904890
an invocation of a function other than
4891-
a \tcode{constexpr} constructor for a literal class,
4892-
a \tcode{constexpr} function,
4891+
a constexpr constructor for a literal class,
4892+
a constexpr function,
48934893
or an implicit invocation of a trivial destructor~(\ref{class.dtor})
48944894
\begin{note} Overload resolution~(\ref{over.match})
48954895
is applied as usual \end{note};
48964896

48974897
\item
4898-
an invocation of an undefined \tcode{constexpr} function or an
4899-
undefined \tcode{constexpr} constructor;
4898+
an invocation of an undefined constexpr function or an
4899+
undefined constexpr constructor;
49004900

49014901
\item
4902-
an invocation of an instantiated \tcode{constexpr} function or
4903-
\tcode{constexpr} constructor that fails to satisfy the requirements
4904-
for a \tcode{constexpr} function or
4905-
\tcode{constexpr} constructor~(\ref{dcl.constexpr});
4902+
an invocation of an instantiated constexpr function or
4903+
constexpr constructor that fails to satisfy the requirements
4904+
for a constexpr function or
4905+
constexpr constructor~(\ref{dcl.constexpr});
49064906

49074907
\item
49084908
an expression that would exceed the implementation-defined

source/iterators.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2653,7 +2653,7 @@
26532653
\effects
26542654
Constructs the end-of-stream iterator.
26552655
If \tcode{is_trivially_default_constructible_v<T>} is \tcode{true},
2656-
then this constructor is a \tcode{constexpr} constructor.
2656+
then this constructor is a constexpr constructor.
26572657

26582658
\pnum
26592659
\postconditions \tcode{in_stream == 0}.

source/lib-intro.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2746,7 +2746,7 @@
27462746
or add additional signatures for a member function name.
27472747
\end{note}
27482748

2749-
\rSec3[constexpr.functions]{\tcode{constexpr} functions and constructors}
2749+
\rSec3[constexpr.functions]{Constexpr functions and constructors}
27502750

27512751
\pnum
27522752
This standard explicitly requires that certain standard library functions are

source/limits.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@
117117
\item%
118118
Nested external specifications [1\,024].
119119
\item%
120-
Recursive \tcode{constexpr} function invocations [512].
120+
Recursive constexpr function invocations [512].
121121
\item%
122122
Full-expressions evaluated within a core constant expression [1\,048\,576].
123123
\item%

source/special.tex

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@
253253
If that user-written default constructor would be ill-formed,
254254
the program is ill-formed.
255255
If that user-written default constructor would satisfy the requirements
256-
of a \tcode{constexpr} constructor~(\ref{dcl.constexpr}), the implicitly-defined
256+
of a constexpr constructor~(\ref{dcl.constexpr}), the implicitly-defined
257257
default constructor is \tcode{constexpr}.
258258
Before the defaulted default constructor for a class is
259259
implicitly defined,
@@ -2735,7 +2735,7 @@
27352735
its odr-use (\ref{basic.def.odr}, \ref{class.temporary}).
27362736
\end{note}
27372737
If the implicitly-defined constructor would satisfy the requirements of a
2738-
\tcode{constexpr} constructor~(\ref{dcl.constexpr}), the implicitly-defined
2738+
constexpr constructor~(\ref{dcl.constexpr}), the implicitly-defined
27392739
constructor is \tcode{constexpr}.
27402740

27412741
\pnum
@@ -3051,12 +3051,12 @@
30513051

30523052
\item
30533053
the assignment operator selected to copy/move each direct base class subobject
3054-
is a \tcode{constexpr} function, and
3054+
is a constexpr function, and
30553055

30563056
\item
30573057
for each non-static data member of \tcode{X} that is of class type (or array
30583058
thereof), the assignment operator selected to copy/move that member is a
3059-
\tcode{constexpr} function.
3059+
constexpr function.
30603060
\end{itemize}
30613061

30623062
\pnum

source/templates.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3237,7 +3237,7 @@
32373237
\item the value of a \tcode{const} object of integral or unscoped enumeration type or
32383238
\item the value of a \tcode{constexpr} object or
32393239
\item the value of a reference or
3240-
\item the definition of a \tcode{constexpr} function,
3240+
\item the definition of a constexpr function,
32413241
\end{itemize}
32423242
and that entity was not defined when the template was defined, or
32433243

source/utilities.tex

Lines changed: 21 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -931,9 +931,9 @@
931931

932932
\pnum
933933
The defaulted move and copy constructor, respectively, of pair shall
934-
be a \tcode{constexpr} function if and only if all required element-wise
934+
be a constexpr function if and only if all required element-wise
935935
initializations for copy and move, respectively, would satisfy the
936-
requirements for a \tcode{constexpr} function.
936+
requirements for a constexpr function.
937937

938938
\indexlibrary{\idxcode{pair}!constructor}%
939939
\begin{itemdecl}
@@ -1572,11 +1572,11 @@
15721572

15731573
\pnum
15741574
The defaulted move and copy constructor, respectively, of
1575-
\tcode{tuple} shall be a \tcode{constexpr} function if and only if all
1575+
\tcode{tuple} shall be a constexpr function if and only if all
15761576
required element-wise initializations for copy and move, respectively,
1577-
would satisfy the requirements for a \tcode{constexpr} function. The
1577+
would satisfy the requirements for a constexpr function. The
15781578
defaulted move and copy constructor of \tcode{tuple<>} shall be
1579-
\tcode{constexpr} functions.
1579+
constexpr functions.
15801580

15811581
\pnum
15821582
In the constructor descriptions that follow, let $i$ be in the range
@@ -2680,7 +2680,7 @@
26802680
\pnum
26812681
\remarks
26822682
No contained value is initialized.
2683-
For every object type \tcode{T} these constructors shall be \tcode{constexpr} constructors (\ref{dcl.constexpr}).
2683+
For every object type \tcode{T} these constructors shall be constexpr constructors (\ref{dcl.constexpr}).
26842684
\end{itemdescr}
26852685

26862686
\indexlibrary{\idxcode{optional}!constructor}%
@@ -2755,7 +2755,7 @@
27552755

27562756
\pnum
27572757
\remarks
2758-
If \tcode{T}'s constructor selected for the initialization is a \tcode{constexpr} constructor, this constructor shall be a \tcode{constexpr} constructor.
2758+
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a \tcode{constexpr} constructor.
27592759
This constructor shall not participate in overload resolution
27602760
unless \tcode{is_constructible_v<T, Args...>} is \tcode{true}.
27612761
\end{itemdescr}
@@ -2782,7 +2782,7 @@
27822782
\pnum
27832783
\remarks
27842784
This constructor shall not participate in overload resolution unless \tcode{is_constructible_v<T, initializer_list<U>\&, Args\&\&...>} is \tcode{true}.
2785-
If \tcode{T}'s constructor selected for the initialization is a \tcode{constexpr} constructor, this constructor shall be a \tcode{constexpr} constructor.
2785+
If \tcode{T}'s constructor selected for the initialization is a constexpr constructor, this constructor shall be a \tcode{constexpr} constructor.
27862786
\end{itemdescr}
27872787

27882788
\pnum
@@ -2814,8 +2814,8 @@
28142814

28152815
\pnum
28162816
\remarks
2817-
If \tcode{T}'s selected constructor is a \tcode{constexpr} constructor,
2818-
this constructor shall be a \tcode{constexpr} constructor.
2817+
If \tcode{T}'s selected constructor is a constexpr constructor,
2818+
this constructor shall be a constexpr constructor.
28192819
This constructor shall not participate in overload resolution unless
28202820
\tcode{is_constructible_v<T, U\&\&>} is \tcode{true},
28212821
\tcode{is_same_v<U, in_place_t>} is \tcode{false}, and
@@ -3310,7 +3310,7 @@
33103310

33113311
\pnum
33123312
\remarks
3313-
These functions shall be \tcode{constexpr} functions.
3313+
These functions shall be constexpr functions.
33143314
\end{itemdescr}
33153315

33163316
\indexlibrarymember{operator*}{optional}%
@@ -3334,7 +3334,7 @@
33343334

33353335
\pnum
33363336
\remarks
3337-
These functions shall be \tcode{constexpr} functions.
3337+
These functions shall be constexpr functions.
33383338
\end{itemdescr}
33393339

33403340
\indexlibrarymember{operator*}{optional}%
@@ -3365,7 +3365,7 @@
33653365

33663366
\pnum
33673367
\remarks
3368-
This function shall be a \tcode{constexpr} function.
3368+
This function shall be a constexpr function.
33693369
\end{itemdescr}
33703370

33713371
\indexlibrarymember{has_value}{optional}%
@@ -3378,7 +3378,7 @@
33783378
\returns \tcode{true} if and only if \tcode{*this} contains a value.
33793379

33803380
\pnum
3381-
\remarks This function shall be a \tcode{constexpr} function.
3381+
\remarks This function shall be a constexpr function.
33823382
\end{itemdescr}
33833383

33843384
\indexlibrarymember{value}{optional}%
@@ -3537,7 +3537,7 @@
35373537
\remarks
35383538
Specializations of this function template
35393539
for which \tcode{*x == *y} is a core constant expression
3540-
shall be \tcode{constexpr} functions.
3540+
shall be constexpr functions.
35413541
\end{itemdescr}
35423542

35433543
\indexlibrarymember{operator"!=}{optional}%
@@ -3585,7 +3585,7 @@
35853585
\remarks
35863586
Specializations of this function template
35873587
for which \tcode{*x < *y} is a core constant expression
3588-
shall be \tcode{constexpr} functions.
3588+
shall be constexpr functions.
35893589
\end{itemdescr}
35903590

35913591
\indexlibrarymember{operator>}{optional}%
@@ -4231,7 +4231,7 @@
42314231
\remarks
42324232
This function shall be \tcode{constexpr} if and only if the
42334233
value-initialization of the alternative type \tcode{T}$_0$ would satisfy the
4234-
requirements for a \tcode{constexpr} function.
4234+
requirements for a constexpr function.
42354235
The expression inside \tcode{noexcept} is equivalent to
42364236
\tcode{is_nothrow_default_constructible_v<\tcode{T}$_0$>}.
42374237
This function shall not participate in overload resolution unless
@@ -4420,7 +4420,7 @@
44204420
\remarks
44214421
This function shall not participate in overload resolution unless \tcode{I} is
44224422
less than \tcode{sizeof...(Types)} and \tcode{is_constructible_v<T$_I$, Args...>} is \tcode{true}.
4423-
If \tcode{T}$_I$'s selected constructor is a \tcode{constexpr} constructor, this
4423+
If \tcode{T}$_I$'s selected constructor is a constexpr constructor, this
44244424
constructor shall be a constexpr constructor.
44254425
\end{itemdescr}
44264426

@@ -4445,7 +4445,7 @@
44454445
This function shall not participate in overload resolution unless \tcode{I} is
44464446
less than \tcode{sizeof...(Types)} and
44474447
\tcode{is_constructible_v<T$_I$, initializer_list<U>\&, Args...>} is \tcode{true}.
4448-
If \tcode{T}$_I$'s selected constructor is a \tcode{constexpr} constructor, this
4448+
If \tcode{T}$_I$'s selected constructor is a constexpr constructor, this
44494449
constructor shall be a constexpr constructor.
44504450
\end{itemdescr}
44514451

@@ -17594,9 +17594,9 @@
1759417594

1759517595
\pnum
1759617596
\remarks The defaulted copy constructor of duration shall be a
17597-
\tcode{constexpr} function if and only if the required initialization
17597+
constexpr function if and only if the required initialization
1759817598
of the member \tcode{rep_} for copy and move, respectively, would
17599-
satisfy the requirements for a \tcode{constexpr} function.
17599+
satisfy the requirements for a constexpr function.
1760017600
\end{itemdescr}
1760117601

1760217602
\begin{example}

0 commit comments

Comments
 (0)