1 // (C) Copyright Jeremy Siek 2001-2004.
2 // Distributed under the Boost Software License, Version 1.0. (See
3 // accompanying file LICENSE_1_0.txt or copy at
4 // http://www.boost.org/LICENSE_1_0.txt)
8 // 27 Feb 2001 Jeremy Siek
15 #include <boost/function_output_iterator.hpp>
17 struct string_appender
19 string_appender(std::string
& s
)
23 void operator()(const std::string
& x
) const
31 int main(int, char*[])
33 std::vector
<std::string
> x
;
40 std::copy(x
.begin(), x
.end(),
41 boost::make_function_output_iterator(string_appender(s
)));
43 std::cout
<< s
<< std::endl
;