-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpseudo.cpp
More file actions
58 lines (42 loc) · 1.09 KB
/
pseudo.cpp
File metadata and controls
58 lines (42 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
template<typename RUNTIME, template <typename> typename DEFINITION>
struct component_factory
{
template<typename RUNTIME>
struct meta {
template<typename TRAIT>
struct component {
typedef DEFINITION<TRAIT>::typename type type;
};
};
};
template<typename Space>
struct storage
{
typedef storage<Space> default_type;
typedef typeSet<Storage<Space>> implements_traits;
typedef typeSet<> requires_traits;
};
struct MyRuntimeSpec {
typedef TypeSet <
rt::Marker<mem::space::CPUGlobal>,
type::Meta<type::BaseAlloc>,
type::Meta<mem::Arena>,
type::Meta<mem::SlabAlloc>,
rt::LazyBind<
type::Meta<mem::GeneralAlloc>,
type::Meta<mem::DefaultGeneralAlloc>,
>,
rt::Bind<
sched::CPUThread,
sched::DefaultCPUThread
>,
rt::Bind<
rng::FastRNG,
rng::DefaultFastRNG
>,
rt::MetaBind<
rng::FastRandom,
rng::DefaultFastRandom
>
> Components;
};