RemoveSwapBack<T, U>(ref FixedList64Bytes<T>, U)
Removes the first occurrence of a particular value in this list.
Read time 1 minuteLast updated 10 days ago
Definition
- Type: Method
- Namespace: Unity.Collections
- Assembly: UnityEngine.ManagedKernelModule
RemoveSwapBack<T, U>(FixedList64Bytes<T>, T)
public static bool RemoveSwapBack<T, U>(this ref FixedList64Bytes<T> container, U value) where T : unmanaged, IEquatable<U>
Parameters
Returns
Type | Description |
|---|---|
| bool | Returns true if the item is removed. |
Remarks
If a value is removed, the last element of the list is copied to overwrite the removed value, and the list's length is decremented by one.
This is cheaper than FixedList64BytesExtensions.Remove, but the order of the remaining elements is not preserved.