group: drop deprecated member sort_as

This commit is contained in:
Michele Caini
2024-01-22 16:51:44 +01:00
parent 89622127db
commit 406ba3cb7d
2 changed files with 2 additions and 9 deletions

View File

@@ -656,14 +656,6 @@ public:
}
}
/**
* @brief Sort entities according to their order in a range.
* @param other The storage to use to impose the order.
*/
[[deprecated("use iterator based sort_as instead")]] void sort_as(const common_type &other) const {
sort_as(other.begin(), other.end());
}
private:
handler *descriptor;
};

View File

@@ -320,7 +320,8 @@ TEST(NonOwningGroup, SortAsAPool) {
}
registry.sort<unsigned int>(std::less<unsigned int>{});
group.sort_as(*group.storage<unsigned int>()); // NOLINT
const entt::sparse_set &other = *group.storage<unsigned int>();
group.sort_as(other.begin(), other.end());
ASSERT_EQ((group.get<const int, unsigned int>(e0)), (std::make_tuple(0, 0u)));
ASSERT_EQ((group.get<0, 1>(e1)), (std::make_tuple(1, 1u)));