10#include "vecmem/memory/memory_resource.hpp"
11#include "vecmem/vecmem_core_export.hpp"
57 virtual void*
do_allocate(std::size_t, std::size_t)
override final;
61 std::size_t)
override final;
65 const memory_resource&
other)
const noexcept override final;
70 std::reference_wrapper<memory_resource> m_upstream;
A memory resource that synchronizes the operations of an upstream resource.
Definition synchronized_memory_resource.hpp:26
virtual VECMEM_CORE_EXPORT void do_deallocate(void *p, std::size_t, std::size_t) override final
De-allocate a previously allocated memory block.
Definition synchronized_memory_resource.cpp:52
virtual VECMEM_CORE_EXPORT void * do_allocate(std::size_t, std::size_t) override final
Allocate memory with one of the underlying resources.
Definition synchronized_memory_resource.cpp:45
VECMEM_CORE_EXPORT synchronized_memory_resource & operator=(synchronized_memory_resource &&rhs)
Move assignment operator.
Definition synchronized_memory_resource.cpp:27
virtual VECMEM_CORE_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override final
Compare the equality of *this memory resource with another.
Definition synchronized_memory_resource.cpp:59
virtual VECMEM_CORE_EXPORT ~synchronized_memory_resource()
Destructor.
Main namespace for the vecmem classes/functions.
Definition atomic_ref.hpp:16
std::vector< T, vecmem::polymorphic_allocator< T > > vector
Alias type for vectors with our polymorphic allocator.
Definition vector.hpp:35