Is there a (different) word that has the same relationship to capacity as resize has to size?

Edit in response to comments: I'm looking for a different word for capacity because I need to make a distinction between changing the size of something and changing its capacity.

The situation originally came up as a software term as an answer mentions, but I'd be more interested in an answer that could work in other situations as well. (E.g. the size of a container is always bigger than its capacity in real life; I can change the capacity of many things without changing their size. Exactly the reverse in software.)

It may well be that there is no such word, in which case that's also a valid answer.

Is the "size" in your case a noun? In which case the relationship is "changing it from what it was to something else?" So you want a verb that describes changing the capacity of something?
–
Jordan ReiterJul 24 '12 at 14:46

+1, especially in the context of programming, as I suppose to be, the verb reallocate is a very good term.
–
Em1Jul 24 '12 at 14:40

1

Spot on. The notion of container capacity is tied to allocation already—to extend their capacity, containers of fixed capacity must by definition be reallocated altogether.
–
Jon PurdyJul 24 '12 at 15:51

Wow, at first I was like "wait what?" but now it seems like it's near-perfect. (The 'near' stemming from the fact that the operation may not actually reallocate, but I digress.) I guess it's kind of unfair to non-programmers here but.. seems to work in my context.
–
MehrdadJul 24 '12 at 21:58

Wow, you assumed exactly the less common meaning of each word in my question. I was referring to the noun, and "capacity" just meant "how much something can hold". I was definitely not talking about incapacitation and such...
–
MehrdadJul 24 '12 at 15:50

Size and Capacity are regularly used property identifier for the Count of items that a container can store.

Assuming that that is your context and having a look at the Capacity property of a simple List the verb resize in relation to Capacity is fine:

List.Capacity Property Gets or sets the total number of elements the internal data structure can hold without resizing.

Said that, some container do have both properties Capacity and Size where the former is the total number of elements which can be stored while the latter is the current number of elements stored. In that context I'd say that resize is ambiguous. Nonetheless, I'd keep resize for changing capacity, although there is the possibility of confusing people. For the change of the number of current items I'd use add or remove or using count instead of size as property name (if I implement the container).

I think this is the best answer if you're talking about collections in general. Resizing a collection can only mean changing its capacity, because you would never talk about resizing a collection when adding or removing elements.
–
Mechanical snailJul 25 '12 at 0:50

In programming terms, when declaring an array, you are sometimes said to be "dimensioning." When you reset the size of the array, you call it "Redim" or "Re-dimensioning." This is in reference to changing the size(capacity) of the array.