Struct DerivedMemoryResource

Inheritance Relationships

Base Type

Derived Type

Struct Documentation

struct DerivedMemoryResource : public c4::MemoryResource

Allows a memory resource to obtain its memory from another memory resource.

Subclassed by c4::detail::_MemoryResourceSingleChunk

Public Functions

inline DerivedMemoryResource(MemoryResource *mr_ = nullptr)

Protected Functions

inline virtual void *do_allocate(size_t sz, size_t alignment, void *hint) override
inline virtual void *do_reallocate(void *ptr, size_t oldsz, size_t newsz, size_t alignment) override
inline virtual void do_deallocate(void *ptr, size_t sz, size_t alignment) override