]> Dogcows Code - chaz/yoink/blobdiff - src/stlplus/strings/print_hash.tpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_hash.tpp
diff --git a/src/stlplus/strings/print_hash.tpp b/src/stlplus/strings/print_hash.tpp
new file mode 100644 (file)
index 0000000..5b3bd96
--- /dev/null
@@ -0,0 +1,29 @@
+////////////////////////////////////////////////////////////////////////////////\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_sequence.hpp"\r
+\r
+namespace stlplus\r
+{\r
+\r
+  template<typename K, typename T, typename H, typename E, typename KS, typename TS>\r
+  void print_hash(std::ostream& device,\r
+                  const hash<K,T,H,E>& values,\r
+                  KS key_print_fn,\r
+                  TS value_print_fn,\r
+                  const std::string& pair_separator,\r
+                  const std::string& separator)\r
+  {\r
+    print_pair_sequence(device, \r
+                        values.begin(), values.end(),\r
+                        key_print_fn, value_print_fn,\r
+                        pair_separator, separator);\r
+  }\r
+\r
+} // end namespace stlplus\r
+\r
This page took 0.024641 seconds and 4 git commands to generate.