Home | History | Annotate | Download | only in memory.resource.public

Lines Matching refs:allocate

15 // TESTING void * memory_resource::allocate(size_t, size_t = max_align)
18 // A) 'memory_resource' contains a member 'allocate' with the required
20 // B) The return type of 'allocate' is 'void*'.
21 // C) 'allocate' is not marked as 'noexcept'.
22 // D) Invoking 'allocate' invokes 'do_allocate' with the same arguments.
23 // E) If 'do_allocate' throws then 'allocate' propagates that exception.
42 std::is_same<decltype(M.allocate(0, 0)), void*>::value
46 std::is_same<decltype(M.allocate(0)), void*>::value
52 ! noexcept(M.allocate(0, 0))
56 ! noexcept(M.allocate(0))
63 void* p = M.allocate(s, a);
69 p = M.allocate(s);
80 M2.allocate(42);