review: group::sort
This commit is contained in:
@@ -839,11 +839,9 @@ public:
|
||||
}
|
||||
|
||||
for(auto next = *length; next; --next) {
|
||||
([next = next-1, curr = cpool->data()[next-1]](auto *cpool) {
|
||||
if(const auto pos = cpool->index(curr); pos != next) {
|
||||
cpool->swap(next, pos);
|
||||
}
|
||||
}(std::get<pool_type<Other> *>(pools)), ...);
|
||||
const auto pos = next - 1;
|
||||
const auto entt = cpool->data()[pos];
|
||||
(std::get<pool_type<Other> *>(pools)->swap(pos, std::get<pool_type<Other> *>(pools)->index(entt)), ...);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user