- FreeMode
- FreeMode
- Reserve
- Resize
- Clear
- Shutdown
- CreateElement
- Add
- AddArray
- Insert
- InsertArray
- AssignArray
- Update
- Shift
- Detach
- Delete
- DeleteRange
- At
- CompareArray
- InsertSort
- Search
- SearchGreat
- SearchLess
- SearchGreatOrEqual
- SearchLessOrEqual
- SearchFirst
- SearchLast
- Save
- Load
- Type
Insert
Inserts an element to the specified position in the array.
bool Insert(
|
Parameters
element
[in] Value of the element to be inserted into an array
pos
[in] Position in the array to insert
Return Value
true - successful, false - cannot insert the element.
Note
Element is not added to the array if an invalid pointer (such as NULL) is passed as a parameter.
Example:
//--- example for CArrayObj::Insert(CObject*,int)
|