Automatic memory management
[Memory management]
Collaboration diagram for Automatic memory management:
Defines | |
#define | GECODE_AUTOARRAY(T, X, N) ::Gecode::Memory::AutoArray< T > X(N) |
Automatic (stack allocation) of memory. |
Define Documentation
|
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 201 of file memory.icc. |