Zig 0.17.0-dev (Split by item)

Shortcut keys
?
Show these tips
S
Focus search field
Esc
Clear focus & close tips
U
Jump to source code
↑
Move up in search results
↓
Move down in search results
↵
Go to active search result
This is an example of documentation generated by ZigDoc, an alternative to Zig's built-in Auto Doc feature. See also examples in other modes/formats. The project being documented here (as the example) is the Zig standard library. Public Function

appendSliceBounded

Public Function
std.array_list.Aligned.appendSliceBounded
pub fn appendSliceBounded(self: *Self, items: []const T) error

Append the slice of items to the list. Never invalidates element pointers. If the list lacks unused capacity for the additional items, returns error.OutOfMemory.

Params

  • self: *Self
  • items: []const T

File

array_list.zig:1124
1124
1125
1126
1127
        pub fn appendSliceBounded(self: *Self, items: []const T) error{OutOfMemory}!void {
            if (self.capacity - self.items.len < items.len) return error.OutOfMemory;
            return appendSliceAssumeCapacity(self, items);
        }