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 "print_sequence.hpp"
16 ////////////////////////////////////////////////////////////////////////////////
19 template<typename K, typename C, typename S>
20 void print_set(std::ostream& device,
21 const std::set<K,C>& values,
23 const std::string& separator)
25 print_sequence(device, values.begin(), values.end(), print_fn, separator);
28 ////////////////////////////////////////////////////////////////////////////////
31 template<typename K, typename C, typename S>
32 void print_multiset(std::ostream& device,
33 const std::multiset<K,C>& values,
35 const std::string& separator)
37 print_sequence(device, values.begin(), values.end(), print_fn, separator);
40 ////////////////////////////////////////////////////////////////////////////////
41 } // end namespace stlplus