Skip to main content

IsStrongIdCollisionResolverLike.ixx File

Concept for strong ID collision detection strategies. More...

Included Headers

#include <concepts> #include <helios.ecs.types>

Namespaces Index

namespacehelios
namespaceecs
namespaceconcepts

Description

Concept for strong ID collision detection strategies.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <concepts>
8
9export module helios.ecs.concepts.IsStrongIdCollisionResolverLike;
10
11import helios.ecs.types;
12
13using namespace helios::ecs::types;
14export namespace helios::ecs::concepts {
15
29 template <typename T>
30 concept IsStrongIdCollisionResolverLike = requires(T& t, const StrongId_t id)
31 {
32 {t.add(id)}->std::same_as<bool>;
33 {t.remove(id)}->std::same_as<bool>;
34 {t.has(id)}->std::same_as<bool>;
35 };
36
37}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.