Gecode::Support::Allocator Class Reference
Default memory allocator. More...
Public Member Functions
|Default constructor. |
|void *||alloc (size_t n)|
|Allocate memory block of size n. |
|void *||realloc (void *p, size_t n)|
|Return address of reallocated memory block p of size n. |
|void||free (void *p)|
|Free memory block p. |
|void *||memcpy (void *d, const void *s, size_t n)|
|Copy n bytes from source s directly to d and returns d. |
Default memory allocator.
Acts as a wrapper around memory allocation functionality.
Can be disabled by giving a "-disable-allocator" option to configure and the be re-implemented before including any other Gecode header.
Constructor & Destructor Documentation
Member Function Documentation
|void * Gecode::Support::Allocator::alloc||(||size_t||n||)||
|void * Gecode::Support::Allocator::realloc||(||void *||p,|
|void Gecode::Support::Allocator::free||(||void *||p||)||
|void * Gecode::Support::Allocator::memcpy||(||void *||d,|
|const void *||s,|
The documentation for this class was generated from the following file: