initial
[prop.git] / include / AD / prop / tuple3.h
blob27f5dc452be20b4c73f76c21edb9cfbf791deb42
1 #ifndef prop_tuple3_h
2 #define prop_tuple3_h
4 template <class T1, class T2, class T3>
5 class Tuple3 {
6 public:
7 T1 _1;
8 T2 _2;
9 T3 _3;
11 inline Tuple3() {}
12 inline Tuple3(
13 const T1& x1,
14 const T2& x2,
15 const T3& x3
16 ) :
17 _1(x1),
18 _2(x2),
19 _3(x3)
23 template <class T1, class T2, class T3>
24 inline Tuple3<T1, T2, T3> mkTuple3(
25 const T1& x1,
26 const T2& x2,
27 const T3& x3
29 { return Tuple3<T1, T2, T3>(x1, x2, x3); }
31 #endif