51 DC_SCOPED(static_vec) vec = static_vec_new();
53 static_vec_push(&vec, 1);
54 static_vec_push(&vec, 2);
55 static_vec_push(&vec, 3);
57 int* result = static_vec_try_push(&vec, 4);
81 DC_SCOPED(str_to_vec_map) map = str_to_vec_map_new(stdalloc_get_ref());
83 char_vec empty_vec = char_vec_new(stdalloc_get_ref());
84 char* key = strdup(
"key1");
85 str_to_vec_map_insert(&map, key, empty_vec);
87 char_vec* vec_ptr = str_to_vec_map_write(&map, key);
88 char_vec_push(vec_ptr, strdup(
"value1"));
89 char_vec_push(vec_ptr, strdup(
"value2"));
90 char_vec_push(vec_ptr, strdup(
"value3"));