Skip to content
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

P0401 Providing size feedback in the Allocator interface #401

Closed
wg21bot opened this issue Jun 23, 2019 · 11 comments · Fixed by cplusplus/draft#4673
Closed

P0401 Providing size feedback in the Allocator interface #401

wg21bot opened this issue Jun 23, 2019 · 11 comments · Fixed by cplusplus/draft#4673

Comments

@wg21bot
Copy link
Collaborator

@wg21bot wg21bot commented Jun 23, 2019

P0401R1 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@wg21bot wg21bot added this to the 2019-07 milestone Jun 23, 2019
@tituswinters tituswinters removed the LWG label Jul 5, 2019
@tituswinters
Copy link
Collaborator

@tituswinters tituswinters commented Jul 5, 2019

Design goes to LEWG first, not targeting C++20.

@jensmaurer jensmaurer added this to Wednesday in LEWG in Cologne 2019 Jul 13, 2019
@tituswinters
Copy link
Collaborator

@tituswinters tituswinters commented Jul 17, 2019

We want a feature like this.
SF F N A SA
2 9 2 0 0

Name choice:
5 allocate_with_size
4 overallocate
2 allocate_with_oversubscribe
6 allocate_oversize
14 allocate_at_least

Prefer a struct (probably named allocate_at_least_result_t) with named elements (vs requirement of structured bindings).
SF F N A SA
2 8 0 2 1

Revise and return.

@jensmaurer jensmaurer removed this from the 2019-07 milestone Aug 23, 2019
@jensmaurer jensmaurer added this to the 2019-11 milestone Aug 23, 2019
@jensmaurer jensmaurer removed this from the 2019-11 milestone Dec 12, 2019
@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Jan 18, 2020

P0401R2 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@wg21bot wg21bot added this to the 2020-02 milestone Jan 18, 2020
@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Mar 24, 2020

P0401R3 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@wg21bot wg21bot removed this from the 2020-02 milestone Mar 24, 2020
@wg21bot wg21bot added this to the 2020-telecon milestone Mar 24, 2020
@FabioFracassi
Copy link
Collaborator

@FabioFracassi FabioFracassi commented Apr 17, 2020

POLL: We prefer to return number of bytes.

Strongly For Weakly For Neutral Weakly Against Strongly Against
0 0 6 6 5

This has no consensus.

POLL: Change the template parameter to sized_ptr_t to pointer type (to support fancy ptr).

Unanimous consent

POLL: We want to deduce the object type from the allocator (alloc_least_n).

Strongly For Weakly For Neutral Weakly Against Strongly Against
4 8 1 0 0

This has consensus.

POLL: We like the design, please revise and do initial wording review (with Pablo, and David Stone) send to LWG (tentatively Ready).

Strongly For Weakly For Neutral Weakly Against Strongly Against
6 12 0 0 0

This has consensus.

@ben-craig
Copy link
Collaborator

@ben-craig ben-craig commented Oct 19, 2020

R2 needed a revision, R3 has been published. Clearing the needs-revision tag.

@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Nov 23, 2020

P0401R4 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@wg21bot wg21bot added this to the 2020-telecon milestone Nov 23, 2020
@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Dec 27, 2020

P0401R5 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@JeffGarland
Copy link
Member

@JeffGarland JeffGarland commented Jan 22, 2021

LWG completed review of the paper on 2021-01-22 telecon. Some minor feedback to be checked by Tim after update.

https://wiki.edg.com/bin/view/Wg21telecons2021/P0401-20210122

Adopt P0401 Size Feedback in Allocator for C++23?

F | N | A

8 | 0 | 0

@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Feb 22, 2021

P0401R6 Providing size feedback in the Allocator interface (Chris Kennelly, Jonathan Wakely)

@wg21bot
Copy link
Collaborator Author

@wg21bot wg21bot commented Oct 26, 2021

Adopted 2021-06.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
No open projects
Linked pull requests

Successfully merging a pull request may close this issue.

8 participants