VOX
A little voxel engine
Loading...
Searching...
No Matches
test.hpp
Go to the documentation of this file.
1#pragma once
2
3#include <tuple>
4
5template <typename EntityType, typename ComponentType>
6class bar
7{
8public:
9 ComponentType component;
10};
11
12template <typename EntityType, typename... ComponentTypes>
13class Test
14{
15public:
17 {
18 auto lambda = []<typename ComponentType>()
19 {
20 std::cout << "ComponentType: " << typeid(ComponentType).name() << std::endl;
21 };
22
23 (lambda.template operator()<ComponentTypes>(), ...);
24 }
25
26 typedef std::tuple<bar<EntityType, ComponentTypes>...> test_tuple;
27private:
28};
Definition: test.hpp:14
Test()
Definition: test.hpp:16
std::tuple< bar< EntityType, ComponentTypes >... > test_tuple
Definition: test.hpp:26
Definition: test.hpp:7
ComponentType component
Definition: test.hpp:9