CppAD: A C++ Algorithmic Differentiation Package  20130102
template<class Type >
static Type* thread_alloc::create_array ( size_t  size_min,
size_t &  size_out 
) [inline, static]

Use thread_alloc to allocate an array, then call default construtor for each element.

Template Parameters:
TypeThe type of the elements of the array.
Parameters:
size_min[in] The minimum number of elements in the array.
size_out[out] The actual number of elements in the array.
Returns:
pointer to the first element of the array. The default constructor is used to initialize all the elements of the array.
The extra_ field, in the thread_alloc node before the return value, is set to size_out.

Definition at line 1393 of file thread_alloc.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines