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

2019-03-04 Thread Jonathan Wakely
On 04/03/19 09:14 +, Jonathan Wakely wrote: On 01/03/19 14:06 +, Jonathan Wakely wrote: On 01/03/19 13:50 +, Jonathan Wakely wrote: * include/std/memory (uses_allocator_construction_args): New set of overloaded functions. (make_obj_using_allocator, uninitiali

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

2019-03-04 Thread Jonathan Wakely
On 01/03/19 14:06 +, Jonathan Wakely wrote: On 01/03/19 13:50 +, Jonathan Wakely wrote: * include/std/memory (uses_allocator_construction_args): New set of overloaded functions. (make_obj_using_allocator, uninitialized_construct_using_allocator): New funct

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

2019-03-01 Thread Jonathan Wakely
On 01/03/19 14:06 +, Jonathan Wakely wrote: + if constexpr (sizeof...(__args) == 0) + { + return std::make_tuple(piecewise_construct, + std::__uses_alloc_args<_Tp1>(__a), + std::__uses_alloc_args<_Tp2>(__a)); + } +

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

2019-03-01 Thread Jonathan Wakely
On 01/03/19 13:50 +, 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 (poly

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

2019-03-01 Thread Jonathan Wakely
* 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) [__cplusplu