Subastra
|
#include <list.h>
Static Public Member Functions | |
static bool | list_pop_tail (list_t *ls, void *out) |
Removes the last index in the list. Returns true if the element was removed and false if the list was empty. | |
static void | list_remove (list_t *ls, sz idx) |
Removes an element at index idx . Panics if the index is out of range. | |
Data Fields | |
allocator_t | _alloc |
sz | _entry |
sz | _capacity |
sz | size |
void * | data |
Removes the last index in the list. Returns true
if the element was removed and false
if the list was empty.
[out] | out | The place for the value at the tail to be written to. Ignored if NULL . |
Removes an element at index idx
. Panics if the index is out of range.
allocator_t _alloc |
sz _capacity |
sz _entry |
void* data |
sz size |