]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_map.hpp
1 #ifndef STLPLUS_STRING_MAP
2 #define STLPLUS_STRING_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"
20 template<typename K
, typename T
, typename C
, typename SK
, typename ST
>
21 std::string
map_to_string(const std::map
<K
,T
,C
>& values
,
23 ST value_to_string_fn
,
24 const std::string
& pair_separator
= ":",
25 const std::string
& separator
= ",");
27 template<typename K
, typename T
, typename C
, typename SK
, typename ST
>
28 std::string
multimap_to_string(const std::multimap
<K
,T
,C
>& values
,
30 ST value_to_string_fn
,
31 const std::string
& pair_separator
= ":",
32 const std::string
& separator
= ",");
34 } // end namespace stlplus
36 #include "string_map.tpp"
This page took 0.033134 seconds and 4 git commands to generate.