[P0211R2](https://wg21.link/p0211r2) Allocator-aware library wrappers for dynamic allocation (Thomas Köppe)
Activity
jensmaurer commentedon Jan 31, 2019
LEWG-I in San Diego: Forward to LEWG for C++23.
wg21bot commentedon Jan 18, 2020
P0211R3 Allocator-aware library wrappers for dynamic allocation (Thomas Köppe)
brycelelbach commentedon Feb 14, 2020
Prague 2020-02 LEWG Minutes
P0211R3
std::allocate_unique
Chair: Bryce Adelstein Lelbach
Champion: Thomas Koeppe
Minute Taker: Ben Craig
Start Review: 2020-02-13 15:52
Should
allocator_new
/allocator_delete
useallocator_traits<>::construct
/allocator_traits<>::destroy
instead of placementnew
/destroy
?Do we want
allocator_new
to take aT
and rebind the allocator?Start Polling: 16:20
POLL: We must have support for arrays in
allocate_unique
/allocator_new
/allocator_delete
in the first version we ship.Attendance:
# of Authors: 1
Author Position: N
POLL: Users should be able to name the types of the deleters returned by
allocate_unique
.Attendance: 33
# of Authors: 1
Author Position: WF
That has weak consensus.
POLL: We must have
allocate_unique_for_overwrite
in the first version we ship.Attendance: 33
# of Authors: 1
Author Position: N
That has weak consensus.
POLL: We must support cv-qualified types in the first version of
allocate_unique
/allocator_new
/allocator_delete
.Attendance: 33
# of Authors: 1
Author Position: SF
That has consensus.
What allocator should
allocate_unique
use in theallocator_deleter
:A
).A::rebind<T>
).std::byte
(reduces the number of allocator types you generate).End: 16:53
CONSENSUS: Bring a revision of P0211R3 (allocator-aware library wrappers for dynamic allocation), with the guidance below, to LEWG for further review.
allocator_delete
should be nameable by users.allocator_delete
on the LEWG mailing list.allocate_unique
/allocator_new
/allocator_delete
must support cv-qualified types.allocate_unique_for_overwrite
.31 remaining items