--------------------------------------------------------------- lines 1374-1424 of file: include/cppad/utility/thread_alloc.hpp --------------------------------------------------------------- {xrst_begin ta_delete_array} {xrst_spell deallocate } Deallocate An Array and Call Destructor for its Elements ######################################################## Syntax ****** ``thread_alloc::delete_array`` ( *array* ) . Purpose ******* Returns memory corresponding to an array created by (create by :ref:`create_array` ) to the :ref:`available` memory pool for the current thread. Type **** The type of the elements of the array. array ***** The argument *array* has prototype *Type* * *array* It is a value returned by :ref:`create_array` and not yet deleted. The *Type* destructor is called for each element in the array. Thread ****** The :ref:`current thread` must be the same as when :ref:`create_array` returned the value *array* . There is an exception to this rule: when the current execution mode is sequential (not :ref:`parallel` ) the current thread number does not matter. Delta ***** The amount of memory :ref:`inuse` will decrease by *delta* , and the :ref:`available` memory will increase by *delta* , where :ref:`ta_create_array@Delta` is the same as for the corresponding call to ``create_array`` . Example ******* :ref:`thread_alloc.cpp-name` {xrst_end ta_delete_array}