Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions source/basic.tex
Original file line number Diff line number Diff line change
Expand Up @@ -4384,7 +4384,7 @@
\pnum
The library provides default definitions for the global allocation and
deallocation functions. Some global allocation and deallocation
functions are replaceable\iref{dcl.fct.def.replace}.
functions are replaceable\iref{term.replaceable.function}.
The following allocation and deallocation functions\iref{support.dynamic}
are implicitly declared in global scope in each translation unit of a
program.
Expand Down Expand Up @@ -5224,9 +5224,10 @@
arrays of such types, and cv-qualified versions of these
types are collectively called \defnadjx{trivially relocatable}{types}{type}.
\label{term.replaceable.type}%
\indextext{replaceable!type|see{type, replaceable}}%
Cv-unqualified scalar types, replaceable class types\iref{class.prop}, and
arrays of such types are collectively called
\defnadjx{replaceable}{types}{type}.
\defnx{replaceable types}{type!replaceable}.
\label{term.standard.layout.type}%
Scalar types, standard-layout class
types\iref{class.prop}, arrays of such types, and
Expand Down Expand Up @@ -7993,7 +7994,7 @@
It is
\impldef{replaceability of the contract-violation handler}
whether the contract-violation handler
is replaceable\iref{dcl.fct.def.replace}.
is replaceable\iref{term.replaceable.function}.
If the contract-violation handler
is not replaceable,
a declaration of a replacement function for the contract-violation handler
Expand Down
3 changes: 2 additions & 1 deletion source/classes.tex
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,9 @@
\item it has a deleted destructor.
\end{itemize}

\indextext{replaceable!class|see{class, replaceable}}%
\pnum
A class \tcode{C} is a \defnadj{replaceable}{class} if it is
A class \tcode{C} is a \defnx{replaceable class}{class!replaceable} if it is
eligible for replacement and
\begin{itemize}
\item has the \tcode{replaceable_if_eligible} \grammarterm{class-property-specifier},
Expand Down
8 changes: 6 additions & 2 deletions source/declarations.tex
Original file line number Diff line number Diff line change
Expand Up @@ -7540,10 +7540,14 @@

\rSec2[dcl.fct.def.replace]{Replaceable function definitions}

\indextext{function!replaceable|(}%
\indextext{replaceable!function|see{function, replaceable}}%

\pnum
\label{term.replaceable.function}%
Certain functions
for which a definition is supplied by the implementation
are \defn{replaceable}.
are \defnx{replaceable}{function!replaceable}.
A \Cpp{} program may
provide a definition with the signature of a replaceable function,
called a \defnadj{replacement}{function}.
Expand Down Expand Up @@ -7575,7 +7579,7 @@
The implementation-supplied function definition
is an otherwise-unnamed function with no linkage.
\end{note}

\indextext{function!replaceable|)}%

\rSec1[dcl.struct.bind]{Structured binding declarations}%
\indextext{structured binding declaration}%
Expand Down
2 changes: 1 addition & 1 deletion source/diagnostics.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2500,6 +2500,6 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.

\end{itemdescr}
2 changes: 1 addition & 1 deletion source/exec.tex
Original file line number Diff line number Diff line change
Expand Up @@ -8450,7 +8450,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\begin{codeblock}
Expand Down
2 changes: 1 addition & 1 deletion source/lib-intro.tex
Original file line number Diff line number Diff line change
Expand Up @@ -3416,7 +3416,7 @@
\pnum
If a function defined in
\ref{\firstlibchapter} through \ref{\lastlibchapter} and \ref{depr}
is specified as replaceable\iref{dcl.fct.def.replace},
is specified as replaceable\iref{term.replaceable.function},
the description of function semantics apply
to both the default version defined by the \Cpp{} standard library and
the replacement function defined by the program.
Expand Down
16 changes: 8 additions & 8 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2498,7 +2498,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\indexlibrarymember{new}{operator}%
Expand Down Expand Up @@ -2547,7 +2547,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
Expand Down Expand Up @@ -2632,7 +2632,7 @@
or
\tcode{realloc},
declared in \libheaderref{cstdlib}.
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
If a replacement function
without a \tcode{size} parameter
is defined by the program,
Expand Down Expand Up @@ -2694,7 +2694,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\rSec3[new.delete.array]{Array forms}
Expand Down Expand Up @@ -2750,7 +2750,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\indexlibrarymember{new}{operator}%
Expand Down Expand Up @@ -2791,7 +2791,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
Expand Down Expand Up @@ -2859,7 +2859,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
If a replacement function
without a \tcode{size} parameter
is defined by the program,
Expand Down Expand Up @@ -2921,7 +2921,7 @@

\pnum
\remarks
This function is replaceable\iref{dcl.fct.def.replace}.
This function is replaceable\iref{term.replaceable.function}.
\end{itemdescr}

\rSec3[new.delete.placement]{Non-allocating forms}
Expand Down