|
LightsprintSDK 2021.08.08
|
#include <RRMemory.h>
Public Member Functions | |
| void * | operator new (std::size_t n) |
| void * | operator new[] (std::size_t n) |
| void | operator delete (void *p, std::size_t n) |
| void | operator delete[] (void *p, std::size_t n) |
When used as base class, delete works correctly without regard who calls it.
Ensures that delete doesn't corrupt heap in environment with multiple heaps.
| void * rr::RRUniformlyAllocated::operator new | ( | std::size_t | n | ) |
Allocates space for instance of any derived class.
| void * rr::RRUniformlyAllocated::operator new[] | ( | std::size_t | n | ) |
Allocates space for array of instances of any derived class.
| void rr::RRUniformlyAllocated::operator delete | ( | void * | p, |
| std::size_t | n | ||
| ) |
Frees space allocated by new.
| void rr::RRUniformlyAllocated::operator delete[] | ( | void * | p, |
| std::size_t | n | ||
| ) |
Frees space allocated by new[].