]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_foursome.tpp
db761f4b83461dd1ca452434cee19297167002d2
[chaz/yoink] / src / stlplus / strings / string_foursome.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 ////////////////////////////////////////////////////////////////////////////////
9
10 namespace stlplus
11 {
12
13 template<typename T1, typename T2, typename T3, typename T4, typename S1, typename S2, typename S3, typename S4>
14 std::string foursome_to_string(const foursome<T1,T2,T3,T4>& values,
15 S1 to_string_fn1,
16 S2 to_string_fn2,
17 S3 to_string_fn3,
18 S4 to_string_fn4,
19 const std::string& separator)
20 {
21 return
22 to_string_fn1(values.first) +
23 separator +
24 to_string_fn2(values.second) +
25 separator +
26 to_string_fn3(values.third) +
27 separator +
28 to_string_fn4(values.fourth);
29 }
30
31
32 } // end namespace stlplus
33
This page took 0.036914 seconds and 4 git commands to generate.