37 #ifdef GECODE_PEAKHEAP_MALLOC_H 41 #ifdef GECODE_PEAKHEAP_MALLOC_MALLOC_H 42 #include <malloc/malloc.h> 45 #ifdef GECODE_ALLOCATOR 47 namespace Gecode {
namespace Support {
71 void*
memcpy(
void *
d,
const void *s,
size_t n);
84 return ::realloc(p,n);
92 return ::memcpy(d,s,n);
99 namespace Gecode {
namespace Support {
void * realloc(void *p, size_t n)
Return address of reallocated memory block p of size n.
Default memory allocator.
int p
Number of positive literals for node type.
int n
Number of negative literals for node type.
void * memcpy(void *d, const void *s, size_t n)
Copy n bytes from source s directly to d and returns d.
#define GECODE_SUPPORT_EXPORT
Allocator allocator
The single global default memory allocator.
Allocator(void)
Default constructor.
Gecode toplevel namespace
void * alloc(size_t n)
Allocate memory block of size n.
void free(void *p)
Free memory block p.