[libcxx-commits] [PATCH] D62233: General shared_ptr cleanup
Zoe Carver via Phabricator via libcxx-commits
libcxx-commits at lists.llvm.org
Tue May 21 22:05:12 PDT 2019
zoecarver created this revision.
zoecarver added reviewers: mclow.lists, EricWF, ldionne, howard.hinnant.
Herald added subscribers: libcxx-commits, dexonsmith.
This patch applies some general cleanup to `shared_ptr` and its implementation structures:
- stop using compressed_pair to store objects.
- implement `__allocate_shared` to reduce duplicate code.
- remove `_LIBCPP_HAS_NO_VARIADICS`. I don't think it is necessary, but I can add it back if it is.
Repository:
rCXX libc++
https://reviews.llvm.org/D62233
Files:
include/memory
test/std/utilities/memory/util.smartptr/util.smartptr.shared/util.smartptr.shared.create/make_shared.protected.fail.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D62233.200643.patch
Type: text/x-patch
Size: 26532 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libcxx-commits/attachments/20190522/4c3dc4bc/attachment-0001.bin>
More information about the libcxx-commits
mailing list