Implement polymorphic_allocator<byte> for C++20 (P0339R6)
commit0e31827300f1ce12857070c5f27a10ebcca4933e
authorJonathan Wakely <jwakely@redhat.com>
Mon, 4 Mar 2019 12:21:06 +0000 (4 12:21 +0000)
committerJonathan Wakely <redi@gcc.gnu.org>
Mon, 4 Mar 2019 12:21:06 +0000 (4 12:21 +0000)
tree2e95c301a67b9672266bce31c42a09af94659cf9
parentc4450491148133f3825470a6c69d90c745986fe8
Implement polymorphic_allocator<byte> for C++20 (P0339R6)

* include/std/memory_resource (polymorphic_allocator): Add default
template argument for C++20.
(polymorphic_allocator::allocate_bytes)
(polymorphic_allocator::deallocate_bytes)
(polymorphic_allocator::allocate_object)
(polymorphic_allocator::deallocate_object)
(polymorphic_allocator::new_object)
(polymorphic_allocator::delete_object): New member functions for
C++20.
* testsuite/20_util/polymorphic_allocator/allocate_object.cc: New
test.

From-SVN: r269362
libstdc++-v3/ChangeLog
libstdc++-v3/include/std/memory_resource
libstdc++-v3/testsuite/20_util/polymorphic_allocator/allocate_object.cc [new file with mode: 0644]