12#include "vecmem/memory/memory_resource.hpp"
27 std::function<
bool(std::size_t, std::size_t)>
pred);
30 void*
allocate(std::size_t, std::size_t);
36 memory_resource& m_upstream;
39 std::function<
bool(std::size_t, std::size_t)> m_pred;
An allocator class that wraps a memory resource.
Definition allocator.hpp:37
Implementation for vecmem::details::conditional_memory_resource.
Definition conditional_memory_resource_impl.hpp:21
void deallocate(void *p, std::size_t, std::size_t)
Deallocate previously allocated memory.
Definition conditional_memory_resource_impl.cpp:37
void * allocate(std::size_t, std::size_t)
(Conditionally) Allocate memory with a chosen memory resource
Definition conditional_memory_resource_impl.cpp:19
Namespace for types that should not be used directly by clients.
Definition array.hpp:23