]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_map.hpp
1 #ifndef STLPLUS_PRINT_MAP
2 #define STLPLUS_PRINT_MAP
3 ////////////////////////////////////////////////////////////////////////////////
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
10 // Generate a string representation of a map/multimap
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
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
,
25 const std::string
& pair_separator
= ":",
26 const std::string
& separator
= ",");
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
,
32 const std::string
& pair_separator
= ":",
33 const std::string
& separator
= ",");
35 } // end namespace stlplus
37 #include "print_map.tpp"
This page took 0.032545 seconds and 4 git commands to generate.