]> Dogcows Code - chaz/yoink/blob - src/stlplus/strings/print_vector.hpp
testing new non-autotools build system
[chaz/yoink] / src / stlplus / strings / print_vector.hpp
1 #ifndef STLPLUS_PRINT_VECTOR
2 #define STLPLUS_PRINT_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 <iostream>
16 #include <vector>
17
18 namespace stlplus
19 {
20
21 ////////////////////////////////////////////////////////////////////////////////
22 // vector
23
24 template<typename T, typename S>
25 void print_vector(std::ostream& device,
26 const std::vector<T>& values,
27 S print_fn,
28 const std::string& separator);
29
30 // specialisation for vector<bool> which has a different implementation
31 void print_bool_vector(std::ostream& device, const std::vector<bool>& values);
32
33 ////////////////////////////////////////////////////////////////////////////////
34
35 } // end namespace stlplus
36
37 #include "print_vector.tpp"
38 #endif
This page took 0.029022 seconds and 4 git commands to generate.