12#include "vecmem/memory/details/memory_resource_base.hpp"
13#include "vecmem/memory/memory_resource.hpp"
56 virtual void*
do_allocate(std::size_t, std::size_t)
override final;
60 std::size_t)
override final;
64 const memory_resource&
other)
const noexcept override final;
Base class for implementations of the vecmem::memory_resource interface.
Definition memory_resource_base.hpp:25
This memory resource does nothing, but it does nothing for a purpose.
Definition terminal_memory_resource.hpp:29
VECMEM_CORE_EXPORT ~terminal_memory_resource()
Destructor.
virtual VECMEM_CORE_EXPORT void * do_allocate(std::size_t, std::size_t) override final
Throw std::bad_alloc.
Definition terminal_memory_resource.cpp:23
virtual VECMEM_CORE_EXPORT bool do_is_equal(const memory_resource &other) const noexcept override final
Check whether the other resource is also a terminal resource.
Definition terminal_memory_resource.cpp:39
virtual VECMEM_CORE_EXPORT void do_deallocate(void *p, std::size_t, std::size_t) override final
Do nothing.
Definition terminal_memory_resource.cpp:31
VECMEM_CORE_EXPORT terminal_memory_resource(void)
Constructs the terminal memory resource, without an upstream resource.
Definition terminal_memory_resource.cpp:17
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