libstdc++/70940 Start fixing polymorphic memory resources
authorJonathan Wakely <jwakely@redhat.com>
Wed, 4 May 2016 12:08:45 +0000 (13:08 +0100)
committerJonathan Wakely <redi@gcc.gnu.org>
Wed, 4 May 2016 12:08:45 +0000 (13:08 +0100)
commitd9cb3e7598f8a9450fcd9a05500e5480631a3bfc
tree1c4baef6fea058d1549d78722c2267d0af33601e
parentda5b1ec120cd4f8e68ff9f83f52a93f3a15bfb74
libstdc++/70940 Start fixing polymorphic memory resources

PR libstdc++/70940
* include/experimental/memory_resource
(__resource_adaptor_imp::do_allocate): Do not default-construct
rebound allocator.
(__resource_adaptor_imp::do_deallocate): Likewise. Use
allocator_traits to get pointer type.
(__null_memory_resource::do_allocate): Remove unused parameters.
(__null_memory_resource::do_deallocate): Likewise.
(__null_memory_resource::do_is_equal): Likewise. Add return statement.
* testsuite/experimental/type_erased_allocator/1.cc: Combine with ...
* testsuite/experimental/type_erased_allocator/1_neg.cc: This, and
move to ...
* testsuite/experimental/memory_resource/1.cc: Here.
* testsuite/experimental/memory_resource/null_memory_resource.cc: New.
* testsuite/experimental/memory_resource/resource_adaptor.cc: New.

From-SVN: r235868
libstdc++-v3/ChangeLog
libstdc++-v3/include/experimental/memory_resource
libstdc++-v3/testsuite/experimental/memory_resource/1.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory_resource/null_memory_resource.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/memory_resource/resource_adaptor.cc [new file with mode: 0644]
libstdc++-v3/testsuite/experimental/type_erased_allocator/1.cc [deleted file]
libstdc++-v3/testsuite/experimental/type_erased_allocator/1_neg.cc [deleted file]