zig/lib
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
..
build-web fix fuzzing speed with prior runs 2026-02-13 17:58:09 -05:00
c libc malloc: introduce a canary 2026-02-14 09:25:41 +01:00
compiler Merge pull request 'rework fuzz testing to be smith based' (#31205) from gooncreeper/zig:integrated-smith into master 2026-02-25 20:23:36 +01:00
compiler_rt compiler_rt: Implemented missing handling of denormal numbers when dividing f128 (#30198) 2026-02-13 20:49:14 +01:00
docs ArrayList.writer() removed in 57dbc9e74a 2026-02-08 21:24:22 -08:00
include remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
init rework fuzz testing to be smith based 2026-02-13 22:12:19 -05:00
libc zig libc: acosf 2026-02-13 11:30:14 -08:00
libcxx libcxx: use compiler's _LIBCPP_HAS_LIBRARY_ALIGNED_ALLOCATION when set 2025-11-14 02:02:59 +01:00
libcxxabi remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
libtsan remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
libunwind remove all IBM AIX and z/OS support 2025-10-29 14:25:51 +01:00
std Make std.PriorityQueue an unmanaged container (#31299) 2026-02-26 21:09:52 +01:00
c.zig libc: implement insque and remque in Zig 2026-02-12 21:35:36 -08:00
compiler_rt.zig compiler_rt: common -> compiler_rt 2026-02-09 20:03:15 -08:00
fuzzer.zig rework fuzz testing to be smith based 2026-02-13 22:12:19 -05:00
ubsan_rt.zig Coff: implement threadlocal variables 2025-10-10 22:47:47 -07:00
zig.h std.Threaded: replace more kernel32 functions with ntdll 2026-02-07 00:02:50 -05:00