Files
zig/lib/std
Saurabh Mishra 4e2cec265d Make std.PriorityQueue an unmanaged container (#31299)
## Summary of changes

+ Make adjustments to the `allocator` field and ensure the below tests pass:

  ```sh
  zig test lib/std/std.zig --zig-lib-dir lib
  zig build test-std -Dno-matrix --summary all
  ```

+ Rename `add` to `push` and `remove` to `pop` in methods and tests

+ Incorporate the functionality of `pop` in `popOrNull`, then rename the `popOrNull` to `pop` and update tests

+ Use `.empty` to set default field values and rename the `init` method to `initContext`

+ Improve variable types in tests: min heap uses the less than context function and max heap uses greater than context function

+ Remove the `dump` method as its not being used anywhere

+ Document methods `clearRetainingCapacity`, `clearAndFree`, `update`, and `ensureTotalCapacityPrecise`

Closes https://codeberg.org/ziglang/zig/issues/31298

Reviewed-on: https://codeberg.org/ziglang/zig/pulls/31299
Reviewed-by: Andrew Kelley <andrew@ziglang.org>
Co-authored-by: Saurabh Mishra <saurabh.m@proton.me>
Co-committed-by: Saurabh Mishra <saurabh.m@proton.me>
2026-02-26 21:09:52 +01:00
..
2025-11-22 22:42:38 +00:00
2025-11-22 22:42:38 +00:00
2026-02-23 02:27:13 +01:00
2026-02-11 23:37:31 +01:00
2026-02-13 22:12:19 -05:00
2026-02-13 17:58:09 -05:00
2025-12-22 10:00:35 -08:00
2025-11-22 22:42:38 +00:00
2025-11-22 22:42:38 +00:00
2026-01-28 00:43:20 -08:00
2026-02-11 23:37:31 +01:00
2026-02-05 16:50:41 -08:00
2026-02-09 10:47:21 -05:00
2026-02-13 22:12:19 -05:00