|
virtual void * | Allocate (size_t size, size_t align=DefaultAlign)=0 |
| Allocates a number of bytes and returns a pointer to the allocated memory. More...
|
|
virtual void | Deallocate (void *ptr)=0 |
| Deallocates the given memory. More...
|
|
template<class T > |
T * | New () |
| An operator new-like function that allocates memory and calls T's constructor. More...
|
|
template<class T , class P0 > |
T * | New (P0 &p0) |
| An operator new-like function that allocates memory and calls T's constructor with one parameter. More...
|
|
template<class T , class P0 > |
T * | New (const P0 &p0) |
| An operator new-like function that allocates memory and calls T's constructor with one parameter. More...
|
|
template<class T , class P0 , class P1 > |
T * | New (P0 &p0, P1 &p1) |
| An operator new-like function that allocates memory and calls T's constructor with two parameters. More...
|
|
template<class T , class P0 , class P1 > |
T * | New (const P0 &p0, P1 &p1) |
| An operator new-like function that allocates memory and calls T's constructor with two parameters. More...
|
|
template<class T , class P0 , class P1 > |
T * | New (P0 &p0, const P1 &p1) |
| An operator new-like function that allocates memory and calls T's constructor with two parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 > |
T * | New (P0 &p0, const P1 &p1, const P2 &p2) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 > |
T * | New (P0 &p0, const P1 &p1, P2 &p2) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 , class P3 > |
T * | New (P0 &p0, P1 &p1, P2 &p2, P3 &p3) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 , class P3 > |
T * | New (P0 &p0, const P1 &p1, P2 &p2, P3 &p3) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 , class P3 , class P4 > |
T * | New (P0 &p0, P1 &p1, P2 &p2, P3 &p3, P4 &p4) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T , class P0 , class P1 , class P2 , class P3 , class P4 > |
T * | New (P0 &p0, const P1 &p1, P2 &p2, P3 &p3, P4 &p4) |
| An operator new-like function that allocates memory and calls T's constructor with the given parameters. More...
|
|
template<class T > |
void | Delete (T *ptr) |
| An operator delete-like function that calls ptr's constructor and deallocates the memory. More...
|
|
Interface used to pass custom allocators to the library.
If you want the library to use your custom allocator you should implement this interface. Specifically, you should provide implementations for the Allocate() and Deallocate() functions. All other (template) member functions are simply based on those two functions.
- See also
- DefaultAllocator