Constructs a qualified array that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied.
Constructs a qualified array out of a number of items. Because no allocator was provided, the array will use the GCAllocator.std.experimental.allocator.gc_allocator..
Constructs a qualified array out of a number of items that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied.
Constructs a qualified array out of an input range. Because no allocator was provided, the array will use the GCAllocator.std.experimental.allocator.gc_allocator.. If Stuff defines length, Array will use it to reserve the necessary amount of memory.
Constructs a qualified array out of an input range that will use the provided allocator object. For immutable objects, a RCISharedAllocator must be supplied. If Stuff defines length, Array will use it to reserve the necessary amount of memory.
Return the number of elements in the array..
Get the available capacity of the array; this is equal to length of the array plus the available pre-allocated, free, space.
Perform a copy of the array. This will create a new array that will copy the elements of the current array. This will NOT call dup on the elements of the array, regardless if T defines it or not.
Check if the array is empty.
Set the length of the array to len. len must be less than or equal to the capacity of the array.
Provide access to the first element in the array. The user must check that the array isn't empty, prior to calling this function.
Inserts the elements of an input range, or a variable number of items, at the given pos.
Check whether there are no more references to this array instance.
Return the number of elements in the array..
Assign rhs to this array. The current array will now become another reference to rhs, unless rhs is null, in which case the current array will become empty. If rhs refers to the current array nothing will happen.
Create a new array that results from the concatenation of this array with rhs.
Provide access to the element at idx in the array. idx must be less than length.
Assign elem to the element at idx in the array. idx must be less than length.
Assign elem to all element in the array.
Assign to the element at idx in the array the result of a[idx] op elem. idx must be less than length.
Apply an unary operation to the element at idx in the array. idx must be less than length.
Append the elements of rhs at the end of the array.
Return a slice to the current array. This is equivalent to calling save.
Return a slice to the current array that is bounded by start and end. start must be less than or equal to end and end must be less than or equal to length.
Assign elem to the element at idx in the array. idx must be less than length.
Advance to the next element in the array. The user must check that the array isn't empty, prior to calling this function.
Reserve enough memory from the allocator to store n elements. If the current capacity exceeds n nothing will happen. If n exceeds the current capacity, an attempt to expand the current array is made. If expand is successful, all the expanded elements are default initialized to T.init. If the expand fails a new buffer will be allocated, the old elements of the array will be copied and the new elements will be default initialized to T.init.
Perform a shallow copy of the array.
Advance to the next element in the array. The user must check that the array isn't empty, prior to calling this function.
Eagerly iterate over each element in the array and call fun over each element. This should be used to iterate through const and immutable arrays.