]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_set.tpp
build system enhancements
[chaz/yoink] / src / stlplus / strings / string_set.tpp
1 ////////////////////////////////////////////////////////////////////////////////
2
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
7
8 // template implementations
9
10 ////////////////////////////////////////////////////////////////////////////////
11 #include "string_sequence.hpp"
12
13 namespace stlplus
14 {
15
16 ////////////////////////////////////////////////////////////////////////////////
17 // set
18
19 template<typename K, typename C, typename S>
20 std::string set_to_string(const std::set<K,C>& values,
21 S to_string_fn,
22 const std::string& separator)
23 {
24 return sequence_to_string(values.begin(), values.end(), to_string_fn, separator);
25 }
26
27 ////////////////////////////////////////////////////////////////////////////////
28 // multiset
29
30 template<typename K, typename C, typename S>
31 std::string multiset_to_string(const std::multiset<K,C>& values,
32 S to_string_fn,
33 const std::string& separator)
34 {
35 return sequence_to_string(values.begin(), values.end(), to_string_fn, separator);
36 }
37
38 ////////////////////////////////////////////////////////////////////////////////
39 } // end namespace stlplus
This page took 0.034982 seconds and 4 git commands to generate.