1 ////////////////////////////////////////////////////////////////////////////////
3 // Author: Andy Rushton
4 // Copyright: (c) Southampton University 1999-2004
5 // (c) Andy Rushton 2004-2009
6 // License: BSD License, see ../docs/license.html
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "print_sequence.hpp"
14 ////////////////////////////////////////////////////////////////////////////////
17 template<typename K, typename T, typename C, typename SK, typename ST>
18 void print_map(std::ostream& device, const std::map<K,T,C>& values,
21 const std::string& pair_separator,
22 const std::string& separator)
24 print_pair_sequence(values.begin(), values.end(),
25 key_print_fn, value_print_fn,
26 pair_separator, separator);
29 ////////////////////////////////////////////////////////////////////////////////
32 template<typename K, typename T, typename C, typename SK, typename ST>
33 void print_multimap(std::ostream& device, const std::multimap<K,T,C>& values,
36 const std::string& pair_separator,
37 const std::string& separator)
39 print_pair_sequence(device,
40 values.begin(), values.end(),
41 key_print_fn, value_print_fn,
42 pair_separator, separator);
45 ////////////////////////////////////////////////////////////////////////////////
46 } // end namespace stlplus