]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_sequence.hpp
cleanup stlplus files
[chaz/yoink] / src / stlplus / strings / string_sequence.hpp
1 #ifndef STLPLUS_STRING_SEQUENCE
2 #define STLPLUS_STRING_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
16 namespace stlplus
17 {
18
19 ////////////////////////////////////////////////////////////////////////////////
20 // any forward iterator sequence
21
22 template <typename I, typename S>
23 std::string sequence_to_string(I begin,
24 I end,
25 S to_string,
26 const std::string& separator);
27
28
29 ////////////////////////////////////////////////////////////////////////////////
30 // any forward iterator sequence of pairs
31
32 template <typename I, typename S1, typename S2>
33 std::string pair_sequence_to_string(I begin,
34 I end,
35 S1 to_string_fn1,
36 S2 to_string_fn2,
37 const std::string& pair_separator,
38 const std::string& separator);
39
40 ////////////////////////////////////////////////////////////////////////////////
41
42 } // end namespace stlplus
43
44 #include "string_sequence.tpp"
45 #endif
This page took 0.032923 seconds and 4 git commands to generate.