1 .. Copyright David Abrahams 2006. Distributed under the Boost
2 .. Software License, Version 1.0. (See accompanying
3 .. file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
10 struct string_appender
12 string_appender(std::string& s)
16 void operator()(const std::string& x) const
24 int main(int, char*[])
26 std::vector<std::string> x;
33 std::copy(x.begin(), x.end(),
34 boost::make_function_output_iterator(string_appender(s)));
36 std::cout << s << std::endl;