[libc++] Refactor allocate_shared to use an allocation guard
authorLouis Dionne <ldionne.2@gmail.com>
Fri, 11 Dec 2020 17:20:06 +0000 (12:20 -0500)
committerLouis Dionne <ldionne.2@gmail.com>
Mon, 14 Dec 2020 22:10:05 +0000 (17:10 -0500)
commit19d57b5c42b4e80fcbd5b6a2167e4a5f4f7b64c3
tree47fd605c6a45ec4b2ba8c95cde127fc94044c6a9
parenta29ecca7819a6ed4250d3689b12b1f664bb790d7
[libc++] Refactor allocate_shared to use an allocation guard

This commit is a step towards making it easier to add support for arrays
in allocate_shared. Adding support for arrays will require writing multiple
functions, and the current complexity of writing allocate_shared is
prohibitive for understanding.

Differential Revision: https://reviews.llvm.org/D93130
libcxx/include/CMakeLists.txt
libcxx/include/__memory/utilities.h [new file with mode: 0644]
libcxx/include/memory