]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_sequence.hpp
build system enhancements
[chaz/yoink] / src / stlplus / strings / print_sequence.hpp
1 #ifndef STLPLUS_PRINT_SEQUENCE
2 #define STLPLUS_PRINT_SEQUENCE
3 ////////////////////////////////////////////////////////////////////////////////
4
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
9
10 // Generate string representations of sequences represented by forward iterators
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include <string>
15 #include <iostream>
16
17 namespace stlplus
18 {
19
20 ////////////////////////////////////////////////////////////////////////////////
21 // any forward iterator sequence
22
23 template <typename I, typename S>
24 void print_sequence(std::ostream& device,
25 I begin, I end,
26 S print_fn,
27 const std::string& separator);
28
29
30 ////////////////////////////////////////////////////////////////////////////////
31 // any forward iterator sequence of pairs
32
33 template <typename I, typename S1, typename S2>
34 void print_pair_sequence(std::ostream& device,
35 I begin, I end,
36 S1 print_fn1,
37 S2 print_fn2,
38 const std::string& pair_separator,
39 const std::string& separator);
40
41 ////////////////////////////////////////////////////////////////////////////////
42
43 } // end namespace stlplus
44
45 #include "print_sequence.tpp"
46 #endif
This page took 0.031092 seconds and 4 git commands to generate.