TrashStack
Allocate a new TrashStack.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Allocate a new TrashStack using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
The AutofreeScope to allocate this structure in.
Allocate a new TrashStack.
This instance will be allocated on the native heap and automatically freed when this class instance is garbage collected.
Parameters
pointer to the previous element of the stack, gets stored in the first sizeof (gpointer)
bytes of the element
Allocate a new TrashStack using the provided AutofreeScope.
The AutofreeScope manages the allocation lifetime. The most common usage is with memScoped
.
Parameters
pointer to the previous element of the stack, gets stored in the first sizeof (gpointer)
bytes of the element
The AutofreeScope to allocate this structure in.