Zen API

- Home
- Topics
- Types
- Files

All Classes Files Functions Variables Typedefs Friends Macros Modules Pages

#define kList_InsertT | ( |  | kList_list,
|  |  | kListItem_before,
|  |  | TPtr_itemContent,
|  |  | kListItemPtr_item
| ) |  |
| related

Inserts an item into the list before the specified list item.

Increases list capacity, if necessary.

A debug assertion will be raised if the size of the specified item type is not equal to the size of the collection item type.

Parameters

  kList_list | List object.
  kListItem_before | Item will be inserted before this list node (if null, inserts at tail).
  TPtr_itemContent | Strongly-typed pointer to item content that will be copied (by value) into the list.
  kListItemPtr_item | Optionally receives pointer to newly-inserted item.

Returns
  Operation status.