Mohit Sethi
27b59ab7c3
Propogate #caller_location to core:container/queue procs
2025-08-22 16:45:50 +01:00
Feoramund
23c1ce8722
container/queue: Remove trailing whitespace
2025-06-11 11:57:38 -04:00
Feoramund
638a1529a3
container/queue: Add shrink
2025-06-11 11:55:30 -04:00
Feoramund
040d79e1b9
container/queue: Let queues be re-initialized with different allocators
2025-06-11 11:55:30 -04:00
Feoramund
81f5763482
container/queue: Add common aliases enqueue and dequeue
2025-06-11 11:55:30 -04:00
Feoramund
6cb84e467b
container/queue: Document the package
2025-06-11 11:55:30 -04:00
Feoramund
862442511a
container/queue: Reorganize
2025-06-11 11:55:29 -04:00
Feoramund
58bda1209a
container/queue: Deprecate peek_*
...
The `*_ptr` and `peek_*` procedures did the same thing, except `peek_*`
was over-cautiously putting the index through a modulo when all
assignments to `q.offset` are already wrapped.
2025-06-11 11:54:52 -04:00
Feoramund
27cd508571
container/queue: Fix and add more bounds checking
2025-06-11 11:54:47 -04:00
Laytan Laats
a5f3c1b849
container/queue: fix init_with_contents
...
Fixes #4729
2025-01-20 19:51:46 +01:00
Laytan Laats
d90d7ed002
Fix off-by-one in queue back and back_ptr procs
2024-07-14 16:00:55 +02:00
Arseniy Poroshin
77a0e50298
fix comments in core:container/queue.
2024-03-26 22:39:43 +00:00
gingerBill
3e7e779abf
Replace core:* to base:* where appropriate
2024-01-28 22:18:51 +00:00
Jeroen van Rijn
04c928fb9e
Clear up core:container/queue
2023-11-15 15:20:52 +01:00
Laytan Laats
076b20a9a5
fix queue reserve always doubling in size when there is enough space
2023-08-26 19:09:04 +02:00
gingerBill
319a465429
Correct queue usage of runtime.Allocator_Error
2023-05-27 15:26:27 +01:00
Colin Davidson
7a6fc3a93b
Add bounds check for peeks
2022-08-29 02:03:12 -07:00
Colin Davidson
83c002c197
add peeks
2022-08-29 01:53:40 -07:00
Colin Davidson
6c2e0b09ba
Add more queue helpers
2022-08-29 00:43:35 -07:00
JungerBoyo
78e6cd0c60
front() and back()
...
based on pop_front(), pop_back()
2022-06-04 00:12:34 +02:00
gingerBill
fb86c23dbd
Keep -vet happy
2022-01-25 16:41:31 +00:00
CiD-
6cf5371d7d
fix push_back and pop_front
2022-01-14 10:17:49 -05:00
gingerBill
a60b9735a2
Add core:container/queue
2022-01-01 15:46:22 +00:00