]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/containers/triple.hpp
import stlplus 3.7
[chaz/yoink] / src / stlplus / containers / triple.hpp
index bf501f53dc74486fbc481313747cb232a882f1ef..2b1908709037b78962261cf92d7b1e8e1ffd0969 100644 (file)
@@ -1,54 +1,56 @@
-#ifndef STLPLUS_TRIPLE
-#define STLPLUS_TRIPLE
-////////////////////////////////////////////////////////////////////////////////
-
-//   Author:    Andy Rushton, from an original by Dan Milton
-//   Copyright: (c) Southampton University 1999-2004
-//              (c) Andy Rushton           2004-2009
-//   License:   BSD License, see ../docs/license.html
-
-//   Similar to the STL pair but with three elements
-
-////////////////////////////////////////////////////////////////////////////////
-#include "containers_fixes.hpp"
-
-namespace stlplus
-{
-
-  ////////////////////////////////////////////////////////////////////////////////
-  // the triple class
-
-  template<typename T1, typename T2, typename T3>
-  struct triple
-  {
-    typedef T1 first_type;
-    typedef T2 second_type;
-    typedef T3 third_type;
-
-    T1 first;
-    T2 second;
-    T3 third;
-
-    triple(void);
-    triple(const T1& p1, const T2& p2, const T3& p3);
-    triple(const triple<T1,T2,T3>& t2);
-  };
-
-  ////////////////////////////////////////////////////////////////////////////////
-  // creation
-
-  template<typename T1, typename T2, typename T3>
-  triple<T1,T2,T3> make_triple(const T1& first, const T2& second, const T3& third);
-
-  ////////////////////////////////////////////////////////////////////////////////
-  // comparison
-
-  template<typename T1, typename T2, typename T3>
-  bool operator == (const triple<T1,T2,T3>& left, const triple<T1,T2,T3>& right);
-
-  ////////////////////////////////////////////////////////////////////////////////
-
-} // end namespace stlplus
-
-#include "triple.tpp"
-#endif
+#ifndef STLPLUS_TRIPLE\r
+#define STLPLUS_TRIPLE\r
+////////////////////////////////////////////////////////////////////////////////\r
+\r
+//   Author:    Andy Rushton, from an original by Dan Milton\r
+//   Copyright: (c) Southampton University 1999-2004\r
+//              (c) Andy Rushton           2004 onwards\r
+//   License:   BSD License, see ../docs/license.html\r
+\r
+//   Similar to the STL pair but with three elements\r
+\r
+////////////////////////////////////////////////////////////////////////////////\r
+#include "containers_fixes.hpp"\r
+\r
+namespace stlplus\r
+{\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+  // the triple class\r
+\r
+  template<typename T1, typename T2, typename T3>\r
+  struct triple\r
+  {\r
+    typedef T1 first_type;\r
+    typedef T2 second_type;\r
+    typedef T3 third_type;\r
+\r
+    T1 first;\r
+    T2 second;\r
+    T3 third;\r
+\r
+    triple(void);\r
+    triple(const T1& p1, const T2& p2, const T3& p3);\r
+    triple(const triple<T1,T2,T3>& t2);\r
+  };\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+  // creation\r
+\r
+  template<typename T1, typename T2, typename T3>\r
+  triple<T1,T2,T3> make_triple(const T1& first, const T2& second, const T3& third);\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+  // comparison\r
+\r
+  template<typename T1, typename T2, typename T3>\r
+  bool operator == (const triple<T1,T2,T3>& left, const triple<T1,T2,T3>& right);\r
+  template<typename T1, typename T2, typename T3>\r
+  bool operator < (const triple<T1,T2,T3>& left, const triple<T1,T2,T3>& right);\r
+\r
+  ////////////////////////////////////////////////////////////////////////////////\r
+\r
+} // end namespace stlplus\r
+\r
+#include "triple.tpp"\r
+#endif\r
This page took 0.022758 seconds and 4 git commands to generate.