Function t8_default_mempool_alloc
Defined in File t8_default_common.hxx
Function Documentation
-
static inline void t8_default_mempool_alloc(sc_mempool_t *scheme_context, int length, t8_element_t **elem)
This class independent function assumes an sc_mempool_t as context. It is suitable as the element_new callback in t8_default_scheme_common.. We assume that the mempool has been created with the correct element size.
- Parameters:
scheme_context – [inout] An element is allocated in this sc_mempool_t.
length – [in] Non-negative number of elements to allocate.
elem – [inout] Array of correct size whose members are filled.