A limited implementation of the std::pmr::memory_resource type.
More...
#include <playrho/pmr/MemoryResource.hpp>
Public Member Functions | |
| memory_resource ()=default | |
| Default constructor. | |
| memory_resource (const memory_resource &)=default | |
| Copy constructor. | |
| virtual | ~memory_resource () |
| Destructor. | |
| void * | allocate (std::size_t bytes, std::size_t alignment=alignof(std::max_align_t)) |
| Allocates memory. | |
| void | deallocate (void *p, std::size_t bytes, std::size_t alignment=alignof(std::max_align_t)) |
| Deallocates memory. | |
| bool | is_equal (const memory_resource &other) const noexcept |
| Compare for equality with other resource. | |
A limited implementation of the std::pmr::memory_resource type.