Skip to content

[new.delete][c.malloc] Properly index operator new and its friends #8135

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
Open
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
3 changes: 1 addition & 2 deletions source/memory.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2150,7 +2150,6 @@
\remarks
These functions do not attempt to allocate
storage by calling \tcode{::operator new()}\iref{new.delete}.
\indexlibrarymember{new}{operator}%

\pnum
These functions implicitly create objects\iref{intro.object}
Expand Down Expand Up @@ -2201,7 +2200,7 @@
\remarks
This function does not attempt to
deallocate storage by calling
\tcode{::operator delete()}\indexlibrarymember{delete}{operator}.
\tcode{::operator delete()}\iref{new.delete}.
\end{itemdescr}

\xrefc{7.22.3}
Expand Down
24 changes: 12 additions & 12 deletions source/support.tex
Original file line number Diff line number Diff line change
Expand Up @@ -2441,7 +2441,7 @@

\rSec3[new.delete.single]{Single-object forms}

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new}%
\begin{itemdecl}
void* operator new(std::size_t size);
void* operator new(std::size_t size, std::align_val_t alignment);
Expand Down Expand Up @@ -2501,7 +2501,7 @@
This function is replaceable\iref{dcl.fct.def.replace}.
\end{itemdescr}

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new}%
\begin{itemdecl}
void* operator new(std::size_t size, const std::nothrow_t&) noexcept;
void* operator new(std::size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept;
Expand Down Expand Up @@ -2550,7 +2550,7 @@
This function is replaceable\iref{dcl.fct.def.replace}.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete}%
\begin{itemdecl}
void operator delete(void* ptr) noexcept;
void operator delete(void* ptr, std::size_t size) noexcept;
Expand Down Expand Up @@ -2650,7 +2650,7 @@
\end{note}
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete}%
\begin{itemdecl}
void operator delete(void* ptr, const std::nothrow_t&) noexcept;
void operator delete(void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept;
Expand Down Expand Up @@ -2699,7 +2699,7 @@

\rSec3[new.delete.array]{Array forms}

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new[]}%
\begin{itemdecl}
void* operator new[](std::size_t size);
void* operator new[](std::size_t size, std::align_val_t alignment);
Expand Down Expand Up @@ -2753,7 +2753,7 @@
This function is replaceable\iref{dcl.fct.def.replace}.
\end{itemdescr}

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new[]}%
\begin{itemdecl}
void* operator new[](std::size_t size, const std::nothrow_t&) noexcept;
void* operator new[](std::size_t size, std::align_val_t alignment, const std::nothrow_t&) noexcept;
Expand Down Expand Up @@ -2794,7 +2794,7 @@
This function is replaceable\iref{dcl.fct.def.replace}.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete[]}%
\begin{itemdecl}
void operator delete[](void* ptr) noexcept;
void operator delete[](void* ptr, std::size_t size) noexcept;
Expand Down Expand Up @@ -2877,7 +2877,7 @@
\end{note}
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete[]}%
\begin{itemdecl}
void operator delete[](void* ptr, const std::nothrow_t&) noexcept;
void operator delete[](void* ptr, std::align_val_t alignment, const std::nothrow_t&) noexcept;
Expand Down Expand Up @@ -2932,7 +2932,7 @@
The provisions of~\ref{basic.stc.dynamic} do not apply to these reserved
placement forms of \tcode{operator new} and \tcode{operator delete}.

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new}%
\begin{itemdecl}
constexpr void* operator new(std::size_t size, void* ptr) noexcept;
\end{itemdecl}
Expand All @@ -2957,7 +2957,7 @@
\end{example}
\end{itemdescr}

\indexlibrarymember{new}{operator}%
\indexlibraryglobal{operator new[]}%
\begin{itemdecl}
constexpr void* operator new[](std::size_t size, void* ptr) noexcept;
\end{itemdecl}
Expand All @@ -2972,7 +2972,7 @@
Intentionally performs no other action.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete}%
\begin{itemdecl}
void operator delete(void* ptr, void*) noexcept;
\end{itemdecl}
Expand All @@ -2990,7 +2990,7 @@
terminates by throwing an exception\iref{expr.new}.
\end{itemdescr}

\indexlibrarymember{delete}{operator}%
\indexlibraryglobal{operator delete[]}%
\begin{itemdecl}
void operator delete[](void* ptr, void*) noexcept;
\end{itemdecl}
Expand Down