]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/print_sequence.tpp
build system enhancements
[chaz/yoink] / src / stlplus / strings / print_sequence.tpp
index cea8056e2296a9ec90c865c4aaa644d5c3e3fd4c..8600ca834c99404cb3a4c176e877059a60a561b3 100644 (file)
@@ -1,50 +1,50 @@
-////////////////////////////////////////////////////////////////////////////////\r
-\r
-//   Author:    Andy Rushton\r
-//   Copyright: (c) Southampton University 1999-2004\r
-//              (c) Andy Rushton           2004-2009\r
-//   License:   BSD License, see ../docs/license.html\r
-\r
-////////////////////////////////////////////////////////////////////////////////\r
-#include "print_pair.hpp"\r
-\r
-namespace stlplus\r
-{\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-  // any forward iterator sequence\r
-\r
-  template <typename I, typename S>\r
-  void print_sequence(std::ostream& device,\r
-                      I begin, I end, \r
-                      S print_fn,\r
-                      const std::string& separator)\r
-  {\r
-    for (I i = begin; i != end; i++)\r
-    {\r
-      if (i != begin) device << separator;\r
-      print_fn(device, *i);\r
-    }\r
-  }\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-  // any sequence where the value is a pair\r
-\r
-  template <typename I, typename S1, typename S2>\r
-  void print_pair_sequence(std::ostream& device,\r
-                           I begin, I end,\r
-                           S1 print_fn1,\r
-                           S2 print_fn2,\r
-                           const std::string& pair_separator,\r
-                           const std::string& separator)\r
-  {\r
-    for (I i = begin; i != end; i++)\r
-    {\r
-      if (i != begin) device << separator;\r
-      print_pair(device, *i, print_fn1, print_fn2, pair_separator);\r
-    }\r
-  }\r
-\r
-  ////////////////////////////////////////////////////////////////////////////////\r
-\r
-} // end namespace stlplus\r
+////////////////////////////////////////////////////////////////////////////////
+
+//   Author:    Andy Rushton
+//   Copyright: (c) Southampton University 1999-2004
+//              (c) Andy Rushton           2004-2009
+//   License:   BSD License, see ../docs/license.html
+
+////////////////////////////////////////////////////////////////////////////////
+#include "print_pair.hpp"
+
+namespace stlplus
+{
+
+  ////////////////////////////////////////////////////////////////////////////////
+  // any forward iterator sequence
+
+  template <typename I, typename S>
+  void print_sequence(std::ostream& device,
+                      I begin, I end, 
+                      S print_fn,
+                      const std::string& separator)
+  {
+    for (I i = begin; i != end; i++)
+    {
+      if (i != begin) device << separator;
+      print_fn(device, *i);
+    }
+  }
+
+  ////////////////////////////////////////////////////////////////////////////////
+  // any sequence where the value is a pair
+
+  template <typename I, typename S1, typename S2>
+  void print_pair_sequence(std::ostream& device,
+                           I begin, I end,
+                           S1 print_fn1,
+                           S2 print_fn2,
+                           const std::string& pair_separator,
+                           const std::string& separator)
+  {
+    for (I i = begin; i != end; i++)
+    {
+      if (i != begin) device << separator;
+      print_pair(device, *i, print_fn1, print_fn2, pair_separator);
+    }
+  }
+
+  ////////////////////////////////////////////////////////////////////////////////
+
+} // end namespace stlplus
This page took 0.020203 seconds and 4 git commands to generate.