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 // template implementations
10 ////////////////////////////////////////////////////////////////////////////////
11 #include "string_sequence.hpp"
16 ////////////////////////////////////////////////////////////////////////////////
19 template<typename K, typename C, typename S>
20 std::string set_to_string(const std::set<K,C>& values,
22 const std::string& separator)
24 return sequence_to_string(values.begin(), values.end(), to_string_fn, separator);
27 ////////////////////////////////////////////////////////////////////////////////
30 template<typename K, typename C, typename S>
31 std::string multiset_to_string(const std::multiset<K,C>& values,
33 const std::string& separator)
35 return sequence_to_string(values.begin(), values.end(), to_string_fn, separator);
38 ////////////////////////////////////////////////////////////////////////////////
39 } // end namespace stlplus