37#ifdef GECODE_PEAKHEAP_MALLOC_H
41#ifdef GECODE_PEAKHEAP_MALLOC_MALLOC_H
42#include <malloc/malloc.h>
45#ifdef GECODE_ALLOCATOR
65 void*
alloc(
size_t n);
67 void*
realloc(
void* p,
size_t n);
71 void*
memcpy(
void *d,
const void *s,
size_t n);
84 return ::realloc(p,n);
92 return ::memcpy(d,s,n);
99namespace Gecode {
namespace Support {
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.
Allocator(void)
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.
Allocator allocator
The single global default memory allocator.
Support algorithms and datastructures
Gecode toplevel namespace
#define GECODE_SUPPORT_EXPORT