/external/libcxx/src/experimental/ |
D | memory_resource.cpp | 27 : public memory_resource 39 virtual bool do_is_equal(memory_resource const & __other) const _NOEXCEPT in do_is_equal() 46 : public memory_resource 56 virtual bool do_is_equal(memory_resource const & __other) const _NOEXCEPT in do_is_equal() 81 memory_resource * new_delete_resource() _NOEXCEPT { in new_delete_resource() 85 memory_resource * null_memory_resource() _NOEXCEPT { in null_memory_resource() 91 static memory_resource * 92 __default_memory_resource(bool set = false, memory_resource * new_res = nullptr) _NOEXCEPT in __default_memory_resource() 95 _LIBCPP_SAFE_STATIC static atomic<memory_resource*> __res = in __default_memory_resource() 108 _LIBCPP_SAFE_STATIC static memory_resource * res = &res_init.resources.new_delete_res; in __default_memory_resource() [all …]
|
/external/libcxx/include/experimental/ |
D | memory_resource | 2 //===------------------------ memory_resource -----------------------------===// 15 experimental/memory_resource synopsis 24 class memory_resource; 26 bool operator==(const memory_resource& a, 27 const memory_resource& b) noexcept; 28 bool operator!=(const memory_resource& a, 29 const memory_resource& b) noexcept; 48 memory_resource* new_delete_resource() noexcept; 49 memory_resource* null_memory_resource() noexcept; 52 memory_resource* set_default_resource(memory_resource* r) noexcept; [all …]
|
/external/libcxx/test/std/experimental/memory/memory.resource/memory.resource.public/ |
D | is_equal.pass.cpp | 30 using std::experimental::pmr::memory_resource; 35 memory_resource const* r1 = nullptr; in main() 36 memory_resource const* r2 = nullptr; in main() 45 memory_resource const& M1 = R1; in main() 49 memory_resource const& M2 = R2; in main() 62 memory_resource const& M1 = R1; in main() 66 memory_resource const& M2 = R2; in main() 79 memory_resource const& M1 = R1; in main() 83 memory_resource const& M2 = R2; in main()
|
D | dtor.pass.cpp | 28 using std::experimental::pmr::memory_resource; 33 std::has_virtual_destructor<memory_resource>::value in main() 37 std::is_nothrow_destructible<memory_resource>::value, in main() 41 std::is_abstract<memory_resource>::value in main() 48 memory_resource* M = new TR(42); in main()
|
D | allocate.pass.cpp | 33 using std::experimental::pmr::memory_resource; 39 memory_resource& M = R; in main() 78 memory_resource& M2 = R2; in main()
|
D | deallocate.pass.cpp | 32 using std::experimental::pmr::memory_resource; 38 memory_resource& M = R; in main()
|
/external/libcxx/test/std/experimental/memory/memory.resource/memory.resource.eq/ |
D | equal.pass.cpp | 29 ex::memory_resource const * mr1(nullptr); in main() 30 ex::memory_resource const * mr2(nullptr); in main() 38 ex::memory_resource const & mr1 = r1; in main() 39 ex::memory_resource const & mr2 = r2; in main() 52 ex::memory_resource const & mr1 = r1; in main() 53 ex::memory_resource const & mr2 = r1; in main() 65 ex::memory_resource const & mr1 = r1; in main() 66 ex::memory_resource const & mr2 = r2; in main()
|
D | not_equal.pass.cpp | 28 ex::memory_resource const * mr1(nullptr); in main() 29 ex::memory_resource const * mr2(nullptr); in main() 37 ex::memory_resource const & mr1 = r1; in main() 38 ex::memory_resource const & mr2 = r2; in main() 52 ex::memory_resource const & mr1 = r1; in main() 53 ex::memory_resource const & mr2 = r2; in main() 66 ex::memory_resource const & mr1 = r1; in main() 67 ex::memory_resource const & mr2 = r1; in main()
|
/external/libcxx/test/std/experimental/memory/memory.resource.global/ |
D | new_delete_resource.pass.cpp | 25 struct assert_on_compare : public ex::memory_resource 34 virtual bool do_is_equal(ex::memory_resource const &) const noexcept in do_is_equal() 42 decltype(ex::new_delete_resource()), ex::memory_resource* in test_return() 59 ex::memory_resource & r1 = *ex::new_delete_resource(); in test_equality() 60 ex::memory_resource & r2 = *ex::new_delete_resource(); in test_equality() 71 ex::memory_resource & r1 = *ex::new_delete_resource(); in test_equality() 73 ex::memory_resource & r2 = c; in test_equality() 81 ex::memory_resource & r1 = *ex::new_delete_resource(); in test_allocate_deallocate()
|
D | null_memory_resource.pass.cpp | 27 struct assert_on_compare : public ex::memory_resource 36 virtual bool do_is_equal(ex::memory_resource const &) const noexcept in do_is_equal() 44 decltype(ex::null_memory_resource()), ex::memory_resource* in test_return() 61 ex::memory_resource & r1 = *ex::null_memory_resource(); in test_equality() 62 ex::memory_resource & r2 = *ex::null_memory_resource(); in test_equality() 76 ex::memory_resource & r1 = *ex::null_memory_resource(); in test_equality() 78 ex::memory_resource & r2 = c; in test_equality()
|
D | default_resource.pass.cpp | 43 memory_resource* p = get_default_resource(); in main() 49 memory_resource *expect = &R; in main() 50 memory_resource *old = set_default_resource(expect); in main() 54 memory_resource *p = get_default_resource(); in main() 60 memory_resource* old = set_default_resource(nullptr); in main() 62 memory_resource* p = get_default_resource(); in main()
|
/external/libcxx/test/std/experimental/memory/memory.resource.adaptor/memory.resource.adaptor.mem/ |
D | do_is_equal.pass.cpp | 45 ex::memory_resource const & m1 = r1; in main() 49 ex::memory_resource const & m2 = r2; in main() 59 ex::memory_resource const & m1 = r1; in main() 64 ex::memory_resource const & m2 = r2; in main() 74 ex::memory_resource const & m1 = r1; in main() 78 ex::memory_resource const & m2 = r2; in main()
|
D | do_allocate_and_deallocate.pass.cpp | 45 ex::memory_resource & m1 = r; in check_allocate_deallocate() 72 ex::memory_resource & m1 = r; in check_alloc_max_size() 99 ex::memory_resource & m1 = r; in check_alloc_max_size()
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | resource.pass.cpp | 32 std::is_same<decltype(a.resource()), ex::memory_resource*>::value in main() 37 ex::memory_resource * mptr = (ex::memory_resource*)42; in main() 51 ex::memory_resource * mptr = (ex::memory_resource*)42; in main()
|
D | select_on_container_copy_construction.pass.cpp | 36 ex::memory_resource * mptr = (ex::memory_resource*)42; in main() 44 ex::memory_resource * mptr = (ex::memory_resource*)42; in main()
|
D | construct_pair_const_lvalue_pair.pass.cpp | 42 ex::memory_resource * M = &R; in doTest() 99 using PMR = ex::memory_resource*; in main()
|
D | construct_pair_rvalue.pass.cpp | 43 ex::memory_resource * M = &R; in doTest() 96 using PMR = ex::memory_resource*; in main()
|
D | construct_pair_values.pass.cpp | 42 ex::memory_resource * M = &R; in doTest() 99 using PMR = ex::memory_resource*; in main()
|
/external/libcxx/test/std/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.ctor/ |
D | other_alloc.pass.cpp | 46 A1 const a((ex::memory_resource*)42); in main() 49 assert(a2.resource() == (ex::memory_resource*)42); in main() 52 A1 a((ex::memory_resource*)42); in main() 55 assert(a2.resource() == (ex::memory_resource*)42); in main()
|
D | copy.pass.cpp | 37 A1 const a((ex::memory_resource*)42); in main() 43 A1 a((ex::memory_resource*)42); in main() 46 assert(a2.resource() == (ex::memory_resource*)42); in main()
|
/external/libcxx/test/support/ |
D | test_memory_resource.hpp | 31 using type = std::experimental::pmr::memory_resource*; 35 class TestResourceImp : public std::experimental::pmr::memory_resource 49 using memory_resource = std::experimental::pmr::memory_resource; typedef in TestResourceImp 94 virtual bool do_is_equal(memory_resource const & other) const noexcept { in do_is_equal()
|
/external/libcxx/test/libcxx/experimental/memory/memory.resource.global/ |
D | new_delete_resource_lifetime.pass.cpp | 29 ex::memory_resource* res = nullptr; 33 POSType(ex::memory_resource* r, void* p, int s) : res(r), ptr(p), n(s) {} in POSType() 46 ex::memory_resource* resource = ex::new_delete_resource();
|
D | global_memory_resource_lifetime.pass.cpp | 29 ex::memory_resource* res = nullptr; 33 POSType(ex::memory_resource* r, void* p, int s) : res(r), ptr(p), n(s) {} in POSType() 52 ex::memory_resource* resource = ex::get_default_resource();
|
/external/libcxx/test/libcxx/experimental/memory/memory.polymorphic.allocator.class/memory.polymorphic.allocator.mem/ |
D | construct_piecewise_pair.pass.cpp | 56 ex::memory_resource * M = &R; 82 typedef ex::memory_resource* allocator_type; 95 typedef ex::memory_resource* allocator_type; 109 using PMR = ex::memory_resource*; in main()
|
/external/libcxx/test/std/experimental/memory/memory.resource/ |
D | construct.fail.cpp | 24 …ex::memory_resource m; // expected-error {{variable type 'ex::memory_resource' is an abstract clas… in main()
|