#define __STDC_WANT_LIB_EXT1__ …
#include <assert.h>
#include <stdlib.h>
#include <string.h>
#include "third_party/vector/vector.h"
#define MAX(a, b) …
static bool _vector_should_grow(Vector *vector) { … }
static bool _vector_should_shrink(Vector *vector) { … }
static void *_vector_offset(Vector *vector, size_t index) { … }
static const void *_vector_const_offset(const Vector *vector, size_t index) { … }
static void _vector_assign(Vector *vector, size_t index, void *element) { … }
static int _vector_move_right(Vector *vector, size_t index) { … }
static void _vector_move_left(Vector *vector, size_t index) { … }
static int _vector_reallocate(Vector *vector, size_t new_capacity) { … }
static int _vector_adjust_capacity(Vector *vector) { … }
static void _vector_swap(size_t *first, size_t *second) { … }
int aom_vector_setup(Vector *vector, size_t capacity, size_t element_size) { … }
int aom_vector_copy(Vector *destination, Vector *source) { … }
int aom_vector_copy_assign(Vector *destination, Vector *source) { … }
int aom_vector_move(Vector *destination, Vector *source) { … }
int aom_vector_move_assign(Vector *destination, Vector *source) { … }
int aom_vector_swap(Vector *destination, Vector *source) { … }
int aom_vector_destroy(Vector *vector) { … }
int aom_vector_push_back(Vector *vector, void *element) { … }
int aom_vector_push_front(Vector *vector, void *element) { … }
int aom_vector_insert(Vector *vector, size_t index, void *element) { … }
int aom_vector_assign(Vector *vector, size_t index, void *element) { … }
int aom_vector_pop_back(Vector *vector) { … }
int aom_vector_pop_front(Vector *vector) { … }
int aom_vector_erase(Vector *vector, size_t index) { … }
int aom_vector_clear(Vector *vector) { … }
void *aom_vector_get(Vector *vector, size_t index) { … }
const void *aom_vector_const_get(const Vector *vector, size_t index) { … }
void *aom_vector_front(Vector *vector) { … }
void *aom_vector_back(Vector *vector) { … }
bool aom_vector_is_initialized(const Vector *vector) { … }
size_t aom_vector_byte_size(const Vector *vector) { … }
size_t aom_vector_free_space(const Vector *vector) { … }
bool aom_vector_is_empty(const Vector *vector) { … }
int aom_vector_resize(Vector *vector, size_t new_size) { … }
int aom_vector_reserve(Vector *vector, size_t minimum_capacity) { … }
int aom_vector_shrink_to_fit(Vector *vector) { … }
Iterator aom_vector_begin(Vector *vector) { … }
Iterator aom_vector_end(Vector *vector) { … }
Iterator aom_vector_iterator(Vector *vector, size_t index) { … }
void *aom_iterator_get(Iterator *iterator) { … }
int aom_iterator_erase(Vector *vector, Iterator *iterator) { … }
void aom_iterator_increment(Iterator *iterator) { … }
void aom_iterator_decrement(Iterator *iterator) { … }
void *aom_iterator_next(Iterator *iterator) { … }
void *aom_iterator_previous(Iterator *iterator) { … }
bool aom_iterator_equals(Iterator *first, Iterator *second) { … }
bool aom_iterator_is_before(Iterator *first, Iterator *second) { … }
bool aom_iterator_is_after(Iterator *first, Iterator *second) { … }
size_t aom_iterator_index(Vector *vector, Iterator *iterator) { … }