Method
NumCosmoMathFunctionSampleSetItercopy
Declaration [src]
void
ncm_function_sample_set_iter_copy (
NcmFunctionSampleSetIter* iter,
NcmFunctionSampleSetIter** iter_out
)
Description [src]
Copies the position of iter into iter_out.
When iter_out points to a NULL pointer the callee allocates a new iterator
that must be freed with ncm_function_sample_set_iter_free().
When iter_out points to an already-allocated iterator (e.g. a stack variable)
no allocation occurs and no free is required.
Parameters
iter_out-
Type:
NcmFunctionSampleSetIterCopy of
iterpointing to the same position; if *iter_outisNULLa new iterator is heap-allocated, otherwise the existing memory is reused.The argument will be set by the function. The caller of the method takes ownership of the returned data, and is responsible for freeing it.