6void default_create(
void);
7void explicit_opts_create(
void);
8void extended_header(
void);
14 explicit_opts_create();
21void default_create(
void)
27 perror(
"vector_create");
36void explicit_opts_create(
void)
39 .element_size =
sizeof(
float),
43 assert(vector &&
"Buy more RAM!");
50void extended_header(
void)
62 .ext_header_size =
sizeof(ext_t),
63 .element_size =
sizeof(
long)
69 *header = (ext_t) {0};
void * vector_get_ext_header(const vector_t *const vector)
Provides a location where user can put a header for the derived class.
#define vector_create(...)
Vector constructor.
vector_t * vector_clone(const vector_t *const vector)
Duplicates a vector.
void vector_destroy(vector_t *const vector)
Deallocates vector.
vector_t * vector_create_(const vector_opts_t *const opts)
Vector contructor.
size_t element_size
Size of the underling element type.
Vector control structure type.
Public interface of the vector.