Sorry if this is a dumb question but I can't seem to discern from the API exactly how to set the initial capacity for csArray. For example, if I'm trying create a n x n array of integers (and I don't want to 'Push' every value into the array), is the only appropriate method:
csArray< csArray<int> > arr;
arr.SetSize (n);
for (unsigned int i = 0; i < n; i++) arr[i].SetSize (n);
I know there are some capacity attributes but I can't seem to figure out how to use them. Any help is greatly appreciated!
- Sal