[PATCH] C++2a Utility functions to implement uses-allocator construction (P0591R4)

Jonathan Wakely jwakely@redhat.com
Fri Mar 1 14:06:00 GMT 2019


On 01/03/19 13:50 +0000, Jonathan Wakely wrote:
>	* 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.

If we don't care about providing the exact signatures from the C++2a
draft, we could do this and use it in C++17 as well ...



-------------- next part --------------
A non-text attachment was scrubbed...
Name: patch.txt
Type: text/x-patch
Size: 14122 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/libstdc++/attachments/20190301/63689c1b/attachment.bin>


More information about the Libstdc++ mailing list