]>
Dogcows Code - chaz/yoink/blob - src/stlplus/strings/string_vector.cpp
1 ////////////////////////////////////////////////////////////////////////////////
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
8 ////////////////////////////////////////////////////////////////////////////////
9 #include "string_vector.hpp"
14 ////////////////////////////////////////////////////////////////////////////////
15 // special case of vector<bool>
17 std::string
bool_vector_to_string(const std::vector
<bool>& values
)
20 for (size_t i
= 0; i
< values
.size(); i
++)
21 result
.append(1, values
[i
] ? '1' : '0');
25 ////////////////////////////////////////////////////////////////////////////////
27 } // end namespace stlplus
This page took 0.032892 seconds and 4 git commands to generate.