Skip to main content

TypedSystemSpec.ixx File

Compile-time descriptor pairing a system type with its construction arguments. More...

Included Headers​

#include <tuple>

Namespaces Index​

namespacehelios
namespaceengine
namespaceruntime
namespaceworld
namespacetypes

Classes Index​

structTypedSystemSpec<TSystem, Args>

Stores a system type together with the arguments needed to construct it. More...

Description​

Compile-time descriptor pairing a system type with its construction arguments.

File Listing​

The file content with the documentation metadata removed is:

1
5module;
6
7#include <tuple>
8
9export module helios.engine.runtime.world.types.TypedSystemSpec;
10
12
24 template<typename TSystem, typename ...Args>
26
29
31 std::tuple<std::decay_t<Args>...> args;
32 };
33
47 template<typename TSystem, typename ...Args>
48 auto TypedSystem(Args&&...args) {
49 return TypedSystemSpec<TSystem, Args...>{
50 std::forward_as_tuple(args...)
51 };
52
53 }
54
55}

Generated via doxygen2docusaurus 2.0.0 by Doxygen 1.9.8.