entt: there is a reason why an allocator concept does not exist...

This commit is contained in:
skypjack
2026-02-10 16:29:46 +01:00
parent 106af0f6d8
commit f93d28981f
27 changed files with 88 additions and 115 deletions

View File

@@ -12,10 +12,3 @@ TEST(Concepts, CVRefUnqualified) {
ASSERT_FALSE(entt::cvref_unqualified<const std::shared_ptr<int>>);
ASSERT_FALSE(entt::cvref_unqualified<std::shared_ptr<int> &>);
}
TEST(Concepts, AllocatorLike) {
ASSERT_FALSE(entt::allocator_like<int>);
ASSERT_TRUE(entt::allocator_like<std::allocator<int>>);
ASSERT_FALSE(entt::allocator_like<std::shared_ptr<int>>);
ASSERT_TRUE(entt::allocator_like<std::allocator<std::allocator<int>>>);
}