* Add a unique element to the array * * @param Item - the element * @return - the index of the added element */
| 117 | * @return - the index of the added element |
| 118 | */ |
| 119 | FORCEINLINE int32 AddUnique(const void* Item) |
| 120 | { |
| 121 | int32 Index = Find(Item); |
| 122 | if (Index == INDEX_NONE) |
| 123 | { |
| 124 | Index = Add(Item); |
| 125 | } |
| 126 | return Index; |
| 127 | } |
| 128 | |
| 129 | /** |
| 130 | * Add N defaulted elements to the array |
no test coverage detected