Function
deallocate
Deallocates memory.
Parameters
Allocator object. Types: Allocator Remarks: | |
Pointer to allocated memory that was allocated by | |
Number of items that could be stored in the allocated memory. | |
A tag the specifies the purpose for the allocated memory. Values: Allocator Usage |
Remarks
The values for object , count and usage_tag should be the same that was
used when allocate was called. The value of data should be the same that was
returned by allocate .
Note: deallocate does not destruct objects.
Use e.g. one of the functions valueDestruct or arrayDestruct to destruct the objects.
delete and delete [] operators which are part of the C++ standard (defined in <new> )
can also be used to destruct objects at a given memory address.
Example Programs
Part of Concept
See Also
SeqAn - Sequence Analysis Library - www.seqan.de