StrArray get/set elements |
![]() |
|
|
|
|
|
Return the element at the specified 0-based index. The returned element cannot be modified.
|
|
|
|
|
Similar to GetAt, but returns a non-const reference to the specified array element. Modifying the content of the returned object is allowed.
|
|
|
|
|
The SetAt method will set the string at the specified 0-based index to the specified value. SetAt will throw an exception if the passed index references an element beyond the current size of the array.
|
|
|
|
|
SetAtGrow is similar to SetAt; it will set the string at the specified 0-based index. However, if the index is higher than the current array upper limit, the array size is increased to accomodate the new element. If the array size must be increased by more than one, elements between the current upper limit and the newly stored element will be initialized to an empty string.
See also: StrArray class