Method Remove
Remove<T, U>(ref FixedList64Bytes<T>, U)
Removes the first occurrence of a particular value in this list.
Declaration
public static bool Remove<T, U>(this ref FixedList64Bytes<T> list, U value) where T : unmanaged, IEquatable<U>
Parameters
Type | Name | Description |
---|---|---|
FixedList64Bytes<T> | list | The list to search. |
U | value | The value to locate and remove. |
Returns
Type | Description |
---|---|
bool | True if the value was found and removed. |
Type Parameters
Name | Description |
---|---|
T | The type of elements in this list. |
U | The value type. |
Remarks
If a value is removed, all elements after it are shifted down by one, and the list's length is decremented by one.
If you don't need to preserve the order of the remaining elements, RemoveSwapBack<T, U>(ref FixedList64Bytes<T>, U) is a cheaper alternative.