[libcxx-commits] [PATCH] D58789: Add polymorphic_allocator methods (P0339r5)
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Feb 28 11:46:30 PST 2019
zoecarver created this revision.
zoecarver added reviewers: ldionne, mclow.lists, EricWF.
Herald added subscribers: libcxx-commits, christof.
zoecarver updated this revision to Diff 188769.
zoecarver added a comment.
Herald added a subscriber: jdoerfert.
Update `www` 2a status.
Add methods to `polymorphic_allocator` as specified in P0339r5 <http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2018/p0339r5.pdf>.
**Methods added:**
void* allocate_bytes(size_t nbytes, size_t alignment = alignof(max_align_t));
void deallocate_bytes(void* p, size_t nbytes, size_t alignment = alignof(max_align_t));
template <class T>
T* allocate_object(size_t n = 1);
template <class T>
void deallocate_object(T* p, size_t n = 1);
template <class T, class... CtorArgs>
T* new_object(CtorArgs&&... ctor_args);
template <class T>
void delete_object(T* p);
`polymorphic_allocator` was not part of the synopsis comment, should I add it?
https://reviews.llvm.org/D58789
Files:
include/experimental/memory_resource
test/libcxx/memory/poly_alloc.cpp
www/cxx2a_status.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58789.188769.patch
Type: text/x-patch
Size: 5714 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190228/f14d1b09/attachment.bin>
More information about the libcxx-commits
mailing list