C++2a Utility functions to implement uses-allocator construction (P0591R4)
authorJonathan Wakely <jwakely@redhat.com>
Fri, 1 Mar 2019 13:50:36 +0000 (13:50 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Fri, 1 Mar 2019 13:50:36 +0000 (13:50 +0000)
commit987bbe48bb03e04810e6c97f292549f11b5b2126
tree434cccf6919aafcdf2743a74aa2c7bde2393a2c4
parent1ccd8493516548e4da242b1093754aad323cd400
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.

From-SVN: r269311
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]