Skip to content

P3433R1 Allocator Support for Operation States #8002

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 1 commit into
base: main
Choose a base branch
from

Conversation

AlisdairM
Copy link
Contributor

@AlisdairM AlisdairM force-pushed the apply_p3433_allocator_support_for_operation_states branch from 7ef61db to 23a1e66 Compare June 23, 2025 16:37
Copy link
Member

@Eisenwave Eisenwave left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No discrepancies with the paper found.

@@ -1916,6 +1916,36 @@
\end{itemize}
\end{itemdescr}

\begin{itemdecl}
template<class T, class Context>
decltype(auto) @\exposid{allocator-aware-forward}@(T&& obj, Context&& context); // \expos
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

indent by two

\exposid{allocator-aware-forward} is an exposition-only function used to
either create a new object of type \tcode{T} from \tcode{obj}
or forward \tcode{obj} depending on whether an allocator is available.
If the environment associated with context provides an allocator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"context" should be code font:

Suggested change
If the environment associated with context provides an allocator
If the environment associated with \tcode{context} provides an allocator

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[2025-06 LWG Motion 20] P3433R1 Allocator Support for Operation States P3433 R0 Allocator Support for Operation States
4 participants