Go to the source code of this file.
◆ ALLOC
◆ CAPACITY
◆ ITEM
◆ NAME [1/2]
◆ NAME [2/2]
◆ basic_example()
Definition at line 13 of file circular.c.
13 {
14 bump_alloc_buffer
buffer = {};
15 bump_alloc alloc = bump_alloc_new(&
buffer);
16
17 int_queue q = int_queue_new_with_capacity_for(8, &alloc);
18
19 int_queue_push_back(&q, 1);
20 int_queue_push_back(&q, 2);
21 int_queue_push_back(&q, 3);
22
24
26
28
30
32
33 int_queue_delete(&q);
34}
static dc_debug_fmt dc_debug_fmt_new()
#define DC_ASSERT(expr,...)
◆ main()