]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_vector.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / string_vector.hpp
1 #ifndef STLPLUS_STRING_VECTOR
2 #define STLPLUS_STRING_VECTOR
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 a string representation of a vector
11
12 ////////////////////////////////////////////////////////////////////////////////
13 #include "strings_fixes.hpp"
14 #include <string>
15 #include <vector>
16
17 namespace stlplus
18 {
19
20 ////////////////////////////////////////////////////////////////////////////////
21 // vector
22
23 template<typename T, typename S>
24 std::string vector_to_string(const std::vector<T>& values,
25 S to_string_fn,
26 const std::string& separator = ",");
27
28 // specialisation for vector<bool> which has a different implementation
29 std::string bool_vector_to_string(const std::vector<bool>& values);
30
31 ////////////////////////////////////////////////////////////////////////////////
32
33 } // end namespace stlplus
34
35 #include "string_vector.tpp"
36 #endif
This page took 0.029905 seconds and 4 git commands to generate.