StrArray constructors and basic operations |
![]() |
|
|
Construct an empty instance of a StrArray object. Initially, the array contains no elements, and its capacity growth factor is set to "default".
Applications and libraries that want to use the StrArray class must have the conditional symbol STR_USE_EXTRAS defined in their configuration file (str_config.h or stdafx.h)
|
|
|
|
|
Return the size of the array, represented as a number of elements. An array that was just created will have a size of 0.
At any given time, the array will have a 'capacity' to hold at least as many elements as it contains. The capacity can also be bigger than the current size, depending on the array growth factor and whether the array previously contained elements which were then deleted.
|
|
|
|
|
Equivalent to GetSize
|
|
|
|
|
Return TRUE if the array currently holds no elements. Equivalent to the expression GetSize() == 0
|
|
|
|
|
Returns the upper bound of the array, i.e. the index of the last element. Equivalent to the expression GetSize() - 1
See also: StrArray class