]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_triple.tpp
build system enhancements
[chaz/yoink] / src / stlplus / strings / string_triple.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 S1, typename S2, typename S3>
14 std::string triple_to_string(const triple<T1,T2,T3>& values,
15 S1 to_string_fn1,
16 S2 to_string_fn2,
17 S3 to_string_fn3,
18 const std::string& separator)
19 {
20 return
21 to_string_fn1(values.first) +
22 separator +
23 to_string_fn2(values.second) +
24 separator +
25 to_string_fn3(values.third);
26 }
27
28 } // end namespace stlplus
29
This page took 0.029664 seconds and 4 git commands to generate.