]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_map.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_map.hpp
1 #ifndef STLPLUS_PRINT_MAP
2 #define STLPLUS_PRINT_MAP
3 ////////////////////////////////////////////////////////////////////////////////
4
5 // Author: Andy Rushton
6 // Copyright: (c) Southampton University 1999-2004
7 // (c) Andy Rushton 2004-2009
8 // License: BSD License, see ../docs/license.html
9
10 // Generate a string representation of a map/multimap
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include <string>
15 #include <iostream>
16 #include <map>
17
18 namespace stlplus
19 {
20
21 template<typename K, typename T, typename C, typename SK, typename ST>
22 void print_map(std::ostream& device, const std::map<K,T,C>& values,
23 SK key_print_fn,
24 ST value_print_fn,
25 const std::string& pair_separator = ":",
26 const std::string& separator = ",");
27
28 template<typename K, typename T, typename C, typename SK, typename ST>
29 void print_multimap(std::ostream& device, const std::multimap<K,T,C>& values,
30 SK key_print_fn,
31 ST value_print_fn,
32 const std::string& pair_separator = ":",
33 const std::string& separator = ",");
34
35 } // end namespace stlplus
36
37 #include "print_map.tpp"
38 #endif
This page took 0.034567 seconds and 4 git commands to generate.