|
static void | cdc_deque_set (struct cdc_deque *d, size_t index, void *value) |
| Sets the deque at index position to the value. The function is not called to free memory. More...
|
|
static enum cdc_stat | cdc_deque_insert (struct cdc_deque *d, size_t index, void *value) |
| Inserts value at index position in the deque. If index is 0, the value is prepended to the deque. If index is cdc_deque_size(), the value is appended to the deque. More...
|
|
static void | cdc_deque_erase (struct cdc_deque *d, size_t index) |
| Removes the element at index position. Index must be a valid index position in the deque. More...
|
|
static void | cdc_deque_clear (struct cdc_deque *d) |
| Removes all the elements from the deque. More...
|
|
static enum cdc_stat | cdc_deque_push_back (struct cdc_deque *d, void *value) |
| Inserts value at the end of the deque. More...
|
|
static void | cdc_deque_pop_back (struct cdc_deque *d) |
| Removes the last item in the deque. More...
|
|
static enum cdc_stat | cdc_deque_push_front (struct cdc_deque *d, void *value) |
| Inserts value at the beginning of the deque. More...
|
|
static void | cdc_deque_pop_front (struct cdc_deque *d) |
| Removes the first item in the deque. More...
|
|
void | cdc_deque_swap (struct cdc_deque *a, struct cdc_deque *b) |
| Swaps deques a and b. This operation is very fast and never fails. More...
|
|