Go backward to Alloc(): Allocation
Go up to Allocation

alloc(): Allocation (Binding Form)

a.alloc(n)
Array<T> a
      int n

Specification: Binds a to a new array with n slots. The contents of the slots are undefined. This binding overrides any previous binding of a.

Constraints: It is illegal to call alloc with n < 0.

Note: This operation is more efficient than the otherwise equivalent form 

a = Array<T>::Alloc(n)

Wolfgang.Schreiner@risc.uni-linz.ac.at
Id: main.tex,v 1.10 1996/04/04 11:45:47 schreine Exp

Prev Up