Skip to main content

IsStrongIdLike.ixx File

Concept for types modelling a strong identifier. More...

Included Headers

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

Namespaces Index

namespacehelios
namespaceecs
namespaceconcepts

Description

Concept for types modelling a strong identifier.

File Listing

The file content with the documentation metadata removed is:

1
5module;
6
7#include <concepts>
8
9export module helios.ecs.concepts.IsStrongIdLike;
10
11import helios.ecs.types.TypeDefs;
12
13using namespace helios::ecs::types;
14export namespace helios::ecs::concepts {
15
28 template <typename T>
29 concept IsStrongIdLike = requires(T& t)
30 {
31 {t.isValid()}->std::same_as<bool>;
32 {t.value()}->std::same_as<StrongId_t>;
33 };
34
35}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.