Prev | Next | omp_get_memory |
# include <cppad/utility/omp_alloc.hpp>
v_ptr = omp_alloc::get_memory(min_bytes, cap_bytes)
size_t min_bytes
It specifies the minimum number of bytes to allocate.
size_t& cap_bytes
It's input value does not matter.
Upon return, it is the actual number of bytes (capacity)
that have been allocated for use,
min_bytes <= cap_bytes
v_ptr
has prototype
void* v_ptr
It is the location where the
cap_bytes
of memory
that have been allocated for use begins.
get_memory
is currently available for use.
min_bytes
is between
the previous
min_bytes
and previous
cap_bytes
.