The function delete_if_not unsafely deletes elements in-place of a vector that does not satisfy the predicate.