This commit is contained in:
2026-03-04 07:05:37 +02:00
parent 9f188b2203
commit 04e70a9e93
7 changed files with 248 additions and 0 deletions

25
test_allocationsDKM.cpp Normal file
View File

@@ -0,0 +1,25 @@
#include <Tourmaline/Containers/DualkeyMap.hpp>
#include <Tourmaline/Systems/ECS.hpp>
#include <Tourmaline/Systems/Random.hpp>
#include <Tourmaline/Types.hpp>
#include <any>
#include <cstdint>
using namespace Tourmaline::Containers;
using namespace Tourmaline::Type;
using namespace Tourmaline::Systems;
struct Transform : public ECS::Component {
Transform(int64_t x = 10, int64_t y = 0, int64_t z = -10)
: x(x), y(y), z(z) {}
int64_t x, y, z;
};
int main() {
DualkeyMap<UUID, std::type_index, std::any> q;
for (int x = 0; x < 100000; x++) {
q.Insert(Random::GenerateUUID(), typeid(Transform), std::any(Transform()));
}
return 0;
}