[PATCH] D11397: [libcxx] Add first bits of <experimental/memory_resource>

Eric Fiselier eric at efcs.ca
Tue Jul 21 15:48:34 PDT 2015


EricWF created this revision.
EricWF added a reviewer: mclow.lists.
EricWF added a subscriber: cfe-commits.

This patch adds the following bits of `<experimental/memory_resource>`.

1. `class memory_resource`
2. `memory_resource* new_delete_resource()`
3. `memory_resource* null_memory_resource()`
4. `memory_resource* get_default_resource()`
5. `memory_resource* set_default_resource(memory_resource*)`

The rest of the header is essentially done but I'm breaking it down for review.

http://reviews.llvm.org/D11397

Files:
  include/experimental/__config
  include/experimental/__memory
  include/experimental/memory_resource
  src/memory_resource.cpp
  src/support/atomic_support.h
  test/libcxx/experimental/memory/memory.resource.synop/version.pass.cpp
  test/std/algorithms/alg.sorting/alg.heap.operations/make.heap/make_heap_comp.pass.cpp
  test/std/experimental/memory/memory.resource.global/default_resource.pass.cpp
  test/std/experimental/memory/memory.resource.global/new_delete_resource.pass.cpp
  test/std/experimental/memory/memory.resource.global/null_memory_resource.pass.cpp
  test/std/experimental/memory/memory.resource.synop/nothing_to_do.pass.cpp
  test/std/experimental/memory/memory.resource/construct.fail.cpp
  test/std/experimental/memory/memory.resource/memory.resource.eq/equality.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.overview/nothing_to_do.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.priv/tested_elsewhere.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.public/allocate.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.public/deallocate.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.public/dtor.pass.cpp
  test/std/experimental/memory/memory.resource/memory.resource.public/is_equal.pass.cpp
  test/support/test_memory_resource.hpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11397.30295.patch
Type: text/x-patch
Size: 54956 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150721/d4e22b64/attachment.bin>


More information about the cfe-commits mailing list