Struct MemoryResourceMalloc

Inheritance Relationships

Base Type

Struct Documentation

struct MemoryResourceMalloc : public c4::MemoryResource

A c4::aalloc-based memory resource. Thread-safe if the implementation called by c4::aalloc() is safe.

Public Functions

inline MemoryResourceMalloc()
inline virtual ~MemoryResourceMalloc() override

Protected Functions

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