]> git.ipfire.org Git - thirdparty/gcc.git/commit
C++2a Utility functions to implement uses-allocator construction (P0591R4)
authorredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Mar 2019 13:50:36 +0000 (13:50 +0000)
committerredi <redi@138bc75d-0d04-0410-961f-82ee72b054a4>
Fri, 1 Mar 2019 13:50:36 +0000 (13:50 +0000)
commit6a9c77f14d18d819dc4b03e1ebc2da4e5f085627
tree434cccf6919aafcdf2743a74aa2c7bde2393a2c4
parent94aadd3917ae4024642da41ef5e5713dd4b9c920
C++2a Utility functions to implement uses-allocator construction (P0591R4)

* include/std/memory (uses_allocator_construction_args): New set of
overloaded functions.
(make_obj_using_allocator, uninitialized_construct_using_allocator):
New functions.
* include/std/memory_resource (polymorphic_allocator::construct)
[__cplusplus > 201703l]: Replace all overloads with a single function
using uses_allocator_construction_args.
* testsuite/20_util/polymorphic_allocator/construct_c++2a.cc: New
test.
* testsuite/20_util/uses_allocator/make_obj.cc: New test.

git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@269311 138bc75d-0d04-0410-961f-82ee72b054a4
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/memory
libstdc++-v3/include/std/memory_resource
libstdc++-v3/testsuite/20_util/polymorphic_allocator/construct_c++2a.cc [new file with mode: 0644]
libstdc++-v3/testsuite/20_util/uses_allocator/make_obj.cc [new file with mode: 0644]