Line data Source code
1 : #pragma once 2 : 3 : #include "MemoryResource.h" 4 : 5 : namespace elsa::mr 6 : { 7 : class HostStandardResource : public MemResInterface 8 : { 9 : protected: 10 604 : HostStandardResource() = default; 11 : 12 : public: 13 : static MemoryResource make(); 14 : 15 : public: 16 : void* allocate(size_t size, size_t alignment) override; 17 : void deallocate(void* ptr, size_t size, size_t alignment) noexcept override; 18 : bool tryResize(void* ptr, size_t size, size_t alignment, size_t newSize) noexcept override; 19 : }; 20 : } // namespace elsa::mr