Generated on Mon Aug 25 11:35:47 2008 for Gecode by doxygen 1.5.6

Automatic memory management
[Memory management]


Defines

#define GECODE_AUTOARRAY(T, X, N)   ::Gecode::Memory::AutoArray< T > X(N)
 Automatic (stack allocation) of memory.


Define Documentation

#define GECODE_AUTOARRAY ( T,
X,
 )     ::Gecode::Memory::AutoArray< T > X(N)

Automatic (stack allocation) of memory.

Allocates automatic memory for N objects of type T and declares and initializes the pointer X to T to that block.

As soon as the current scope is left, the memory is freed.

Tries to allocate small blocks on the stack, bigger ones are allocated from the heap (however, management is still automatic).

Definition at line 216 of file memory.icc.