DoxigAlpha

moveToUnmanaged

Initializes an ArrayList with the items and capacity fields of this ArrayList. Empties this ArrayList.

Function parameters

Parameters

#
self:*Self

Deprecated.

Functions

#
Managed
Deprecated.
AlignedManaged
Deprecated.
Aligned
A contiguous, growable list of arbitrarily aligned items in memory.

Source

Implementation

#
pub fn moveToUnmanaged(self: *Self) Aligned(T, alignment) {
    const allocator = self.allocator;
    const result: Aligned(T, alignment) = .{ .items = self.items, .capacity = self.capacity };
    self.* = init(allocator);
    return result;
}