PlayRho  2.0.0
An interactive physics engine & library.
playrho::pmr::memory_resource Class Referenceabstract

A limited implementation of the std::pmr::memory_resource type. More...

#include <playrho/pmr/MemoryResource.hpp>

Inheritance diagram for playrho::pmr::memory_resource:
[legend]

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.
 

Detailed Description

A limited implementation of the std::pmr::memory_resource type.

See also
https://en.cppreference.com/w/cpp/memory/memory_resource.

The documentation for this class was generated from the following files: