Skip to content

Commit 18b6101

Browse files
committed
P2810R4 is_debugger_present is_replaceable
1 parent 6de4e69 commit 18b6101

File tree

3 files changed

+18
-2
lines changed

3 files changed

+18
-2
lines changed

source/lib-intro.tex

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3294,6 +3294,13 @@
32943294
operator delete[](void*, std::align_val_t, const std::nothrow_t&)
32953295
\end{codeblock}
32963296

3297+
\pnum
3298+
A \Cpp{} program may provide the definition of
3299+
the following function signature declared in header \libheaderref{debugging}:
3300+
\begin{codeblock}
3301+
std::is_debugger_present()
3302+
\end{codeblock}
3303+
32973304
\pnum
32983305
The program's definitions are used instead of the default versions supplied by
32993306
the implementation\iref{new.delete}.

source/support.tex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@
619619
// \libheader{deque}, \libheader{queue}, \libheader{stack}, \libheader{string}
620620
#define @\defnlibxname{cpp_lib_copyable_function}@ 202306L // also in \libheader{functional}
621621
#define @\defnlibxname{cpp_lib_coroutine}@ 201902L // also in \libheader{coroutine}
622-
#define @\defnlibxname{cpp_lib_debugging}@ 202311L // freestanding, also in \libheader{debugging}
622+
#define @\defnlibxname{cpp_lib_debugging}@ 202403L // freestanding, also in \libheader{debugging}
623623
#define @\defnlibxname{cpp_lib_destroying_delete}@ 201806L // freestanding, also in \libheader{new}
624624
#define @\defnlibxname{cpp_lib_enable_shared_from_this}@ 201603L // also in \libheader{memory}
625625
#define @\defnlibxname{cpp_lib_endian}@ 201907L // freestanding, also in \libheader{bit}

source/utilities.tex

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19261,9 +19261,18 @@
1926119261
\end{itemdecl}
1926219262

1926319263
\begin{itemdescr}
19264+
\pnum
19265+
\replaceable
19266+
A \Cpp{} program may define a function with this function signature, and
19267+
thereby displace the default version defined by the \Cpp{} standard library.
19268+
19269+
\pnum
19270+
\required
19271+
This function has no preconditions.
1926419272

1926519273
\pnum
19266-
The semantics of this function are \impldef{semantics of \tcode{is_debugger_present}}.
19274+
\default
19275+
Implementation-defined.
1926719276

1926819277
\begin{note}
1926919278
When tracing the execution of a program with a debugger, an implementation

0 commit comments

Comments
 (0)