15 lines
289 B
C
15 lines
289 B
C
#define CIG_IMPL
|
|
#include "cig.h"
|
|
|
|
int main() {
|
|
with_borrow(allocator) {
|
|
int *ints;
|
|
set_init(&ints, allocator, .initial_capacity=20);
|
|
map_print_mapping_state(ints, stdout);
|
|
for ( int i = 0; i < 100; i++ ) {
|
|
set_add(&ints, i);
|
|
map_print_mapping_state(ints, stdout);
|
|
}
|
|
}
|
|
}
|