// (C) Copyright Jonathan Turkanis 2004. // Distributed under the Boost Software License, Version 1.0. (See accompanying // file LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt. // Disclaimer: Not a Boost library. #include #include #include #include #include struct Thing { }; int main() { using namespace std; using namespace boost::assign; using namespace boost::io; vector strings = list_of("London")("Paris")("Prague"); int flags = punc::break_after_open | punc::indent_after_open | punc::break_after_sep | punc::break_before_close; cout << punctuate< vector >("[", ",", "]", flags) << strings << "\n"; return 0; }