//===----------------------------------------------------------------------===// // // The LLVM Compiler Infrastructure // // This file is dual licensed under the MIT and the University of Illinois Open // Source Licenses. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// // // class ostream_iterator // ostream_iterator(ostream_type& s, const charT* delimiter); #include #include #include int main() { { std::ostringstream outf; std::ostream_iterator i(outf, ", "); assert(outf.good()); } { std::wostringstream outf; std::ostream_iterator i(outf, L", "); assert(outf.good()); } }