aboutsummaryrefslogtreecommitdiff
path: root/lib/std/array_list.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-08-04 23:51:45 -0700
committerAndrew Kelley <andrew@ziglang.org>2025-08-05 09:56:02 -0700
commit196e36bbb27b0f0ebd7cd7a866b85f477b3662fb (patch)
tree04efce99fc296278385acbd0a27acdb52d916358 /lib/std/array_list.zig
parentc47ec4f3d7a6bf79be3adcffa33aa51bcc26ed0b (diff)
downloadzig-196e36bbb27b0f0ebd7cd7a866b85f477b3662fb.tar.gz
zig-196e36bbb27b0f0ebd7cd7a866b85f477b3662fb.zip
std: remove BoundedArray
This use case is handled by ArrayListUnmanaged via the "...Bounded" method variants, and it's more optimal to share machine code, versus generating multiple versions of each function for differing array lengths.
Diffstat (limited to 'lib/std/array_list.zig')
-rw-r--r--lib/std/array_list.zig1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/std/array_list.zig b/lib/std/array_list.zig
index c866a34e03..8af36a4a8e 100644
--- a/lib/std/array_list.zig
+++ b/lib/std/array_list.zig
@@ -657,6 +657,7 @@ pub fn ArrayListAlignedUnmanaged(comptime T: type, comptime alignment: ?mem.Alig
/// Initialize with externally-managed memory. The buffer determines the
/// capacity, and the length is set to zero.
+ ///
/// When initialized this way, all functions that accept an Allocator
/// argument cause illegal behavior.
pub fn initBuffer(buffer: Slice) Self {