12#include "vecmem/memory/memory_resource.hpp"
16#include <unordered_map>
27 std::vector<std::reference_wrapper<memory_resource>>&&
upstreams);
36 const std::vector<std::reference_wrapper<memory_resource>> m_upstreams;
39 std::unordered_map<void*, std::reference_wrapper<memory_resource>>
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Implementation for vecmem::details::coalescing_memory_resource.
Definition coalescing_memory_resource_impl.hpp:22
void deallocate(void *p, std::size_t size, std::size_t align)
Deallocate previously allocated memory.
Definition coalescing_memory_resource_impl.cpp:56
void * allocate(std::size_t size, std::size_t align)
Allocate memory with a chosen memory resource.
Definition coalescing_memory_resource_impl.cpp:21
Namespace for types that should not be used directly by clients.
Definition array.hpp:23