diff options
author | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-04 12:08:45 +0000 |
---|---|---|
committer | redi <redi@138bc75d-0d04-0410-961f-82ee72b054a4> | 2016-05-04 12:08:45 +0000 |
commit | 466b8a137325aff1f5666ec6252f911ab0149e56 (patch) | |
tree | 1c4baef6fea058d1549d78722c2267d0af33601e /libcilkrts/runtime/cilk_api.c | |
parent | 121329865bb52656e6baacaac9ceaf278dbc3238 (diff) | |
download | gcc-466b8a137325aff1f5666ec6252f911ab0149e56.tar.gz |
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.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@235868 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libcilkrts/runtime/cilk_api.c')
0 files changed, 0 insertions, 0 deletions