41 #ifdef GECODE_PEAKHEAP_MALLOC_H 45 #ifdef GECODE_PEAKHEAP_MALLOC_MALLOC_H 46 #include <malloc/malloc.h> 49 #ifdef GECODE_ALLOCATOR 51 namespace Gecode {
namespace Support {
75 void*
memcpy(
void *
d,
const void *s,
size_t n);
88 return ::realloc(
p,
n);
96 return ::memcpy(
d,s,
n);
103 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.