true upon success, false if memory could not be allocated. In the
latter case array is left unaffected.
Grows array by appending delta more elements. The needed memory is allocated using alloc. The extra elements added are either default- initialized, filled with copies of init, or initialized with values fetched from range.
T | element type of the array being created |
alloc | the allocator used for getting memory |
array | a reference to the array being grown |
delta | number of elements to add (upon success the new length of array is array.length + delta) |
init | element used for filling the array |
range | range used for initializing the array elements |
true upon success, false if memory could not be allocated. In the
latter case array is left unaffected.
alloc's primitives do. The
overloads that involve copy initialization deallocate memory and propagate the exception if the copy operation throws.