]>
Dogcows Code - chaz/yoink/blob - triple.hpp
9546ccef6123eff6c774612e2762c246d8910b94
3 ////////////////////////////////////////////////////////////////////////////////
5 // Author: Andy Rushton, from an original by Dan Milton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
10 // Similar to the STL pair but with three elements
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "containers_fixes.hpp"
18 ////////////////////////////////////////////////////////////////////////////////
21 template<typename T1
, typename T2
, typename T3
>
24 typedef T1 first_type
;
25 typedef T2 second_type
;
26 typedef T3 third_type
;
33 triple(const T1
& p1
, const T2
& p2
, const T3
& p3
);
34 triple(const triple
<T1
,T2
,T3
>& t2
);
37 ////////////////////////////////////////////////////////////////////////////////
40 template<typename T1
, typename T2
, typename T3
>
41 triple
<T1
,T2
,T3
> make_triple(const T1
& first
, const T2
& second
, const T3
& third
);
43 ////////////////////////////////////////////////////////////////////////////////
46 template<typename T1
, typename T2
, typename T3
>
47 bool operator == (const triple
<T1
,T2
,T3
>& left
, const triple
<T1
,T2
,T3
>& right
);
49 ////////////////////////////////////////////////////////////////////////////////
51 } // end namespace stlplus
This page took 0.039125 seconds and 3 git commands to generate.