Constructors

IntList(int listsize)

Builds a list of length listsize, with each entry initialized to 0.

IntList(int element, int listsize)

Builds a list of length listsize, with each entry initialized to element.

IntList(int element1, int element2, int element3)
IntList(int element1, int element2, int element3, int element4)
Note that some shortcut constructors cannot be implemented due to ambiguity with the previously defined constructors. The given constructors each builds a list and initializes it with the specified values.