Fix? ordered_remove in loops
This commit is contained in:
@@ -117,7 +117,7 @@ struct Array {
|
||||
return result;
|
||||
}
|
||||
|
||||
void ordered_remove(T &item) {
|
||||
void ordered_remove(T &item) { // Dont use in loops !!!!
|
||||
assert(len > 0);
|
||||
assert(&item >= begin() && &item < end());
|
||||
int index = get_index(&item);
|
||||
|
||||
Reference in New Issue
Block a user