|
libcstl
|
Go to the source code of this file.
Functions | |
| const void * | cstl_vector_at_const (const struct cstl_vector *const v, const size_t i) |
| Get a const pointer to an element from a const vector. | |
| void * | cstl_vector_at (struct cstl_vector *const v, const size_t i) |
| Get a pointer to an element in the vector. | |
| void | cstl_vector_reserve (struct cstl_vector *const v, const size_t sz) |
| Request to increase the capacity of the vector. | |
| void | cstl_vector_shrink_to_fit (struct cstl_vector *const v) |
| Request to decrease the capacity of the vector. | |
| void | cstl_vector_resize (struct cstl_vector *const v, const size_t sz) |
| Change the number of valid elements in the vector. | |
| void | cstl_vector_clear (struct cstl_vector *const v) |
| Return a vector to its initialized state. | |
| void | __cstl_vector_sort (struct cstl_vector *const v, cstl_compare_func_t *const cmp, void *const priv, cstl_swap_func_t *const swap, const cstl_sort_algorithm_t algo) |
| Sort the elements in the vector. | |
| ssize_t | cstl_vector_search (const struct cstl_vector *const v, const void *const e, cstl_compare_func_t *const cmp, void *const priv) |
| Perform a binary search of the vector. | |
| ssize_t | cstl_vector_find (const struct cstl_vector *const v, const void *const e, cstl_compare_func_t *const cmp, void *const priv) |
| Perform a linear search of the vector. | |
| void | __cstl_vector_reverse (struct cstl_vector *const v, cstl_swap_func_t *const swap) |
| Reverse the current order of the elements. | |
| void | cstl_vector_swap (struct cstl_vector *const a, struct cstl_vector *const b) |
| Swap the vector objects at the two given locations. | |