diff options
author | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-23 22:09:22 +0200 |
---|---|---|
committer | Vegard Storheil Eriksen <zyp@jvnv.net> | 2010-05-23 22:09:22 +0200 |
commit | f1e9c6d19ef8a2b95f2b77103e02371c89d05188 (patch) | |
tree | 2cc061364fb6f16f81c641b2bf45d95e1a61da3c | |
parent | 5262ed625e10465b58b8e812f816d6fb0965796f (diff) |
Added Struct.
-rw-r--r-- | engine/struct.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/engine/struct.h b/engine/struct.h new file mode 100644 index 0000000..d08e66d --- /dev/null +++ b/engine/struct.h @@ -0,0 +1,53 @@ +#ifndef STRUCT_H +#define STRUCT_H + +template<class A = void, class B = void, class C = void, class D = void, class E = void, class F = void> +struct Struct { + A a; + B b; + C c; + D d; + E e; + F f; +}; + +template<class A, class B, class C, class D, class E> +struct Struct<A, B, C, D, E, void> { + A a; + B b; + C c; + D d; + E e; +}; + +template<class A, class B, class C, class D> +struct Struct<A, B, C, D, void, void> { + A a; + B b; + C c; + D d; +}; + +template<class A, class B, class C> +struct Struct<A, B, C, void, void, void> { + A a; + B b; + C c; +}; + +template<class A, class B> +struct Struct<A, B, void, void, void, void> { + A a; + B b; +}; + +template<class A> +struct Struct<A, void, void, void, void, void> { + A a; +}; + +template<> +struct Struct<void, void, void, void, void, void> { +}; + +#endif |